SentraSec-7B v5.1.3
AI-Powered Cybersecurity Research, Red Team, Blue Team & Reverse Engineering Assistant
SentraSec is a cybersecurity research and analysis model developed by Ayyoub El Hariri. It is intended to assist security researchers, penetration testers, application security engineers, SOC analysts, incident responders, and cybersecurity professionals.
The model supports structured security analysis, vulnerability investigation, web and mobile application security, reverse engineering, binary inspection, threat detection, technical evidence interpretation, and remediation guidance.
This release represents Stage 2 of the SentraSec development pipeline and is distributed in GGUF format for local inference with compatible runtimes.
Model-size note: “7B” is the release designation in this README. Verify the actual parameter count from the model configuration or GGUF metadata before describing it as a confirmed parameter count.
- Developer: Ayyoub El Hariri ayyoub_elhariri@um5.ac.ma
- Project: SentraSec
- Focus: AI-driven cybersecurity research and intelligence
1. Model Overview
| Attribute | Description |
|---|---|
| Model Name | SentraSec-7B |
| Version | v5.1.3 |
| Model Family | SentraSec |
| Model Size | 7B release designation; verify actual parameter count |
| Release Stage | Stage 2 |
| Distribution Format | GGUF |
| Primary Task | Cybersecurity research and analysis |
| Security Domains | Red Team, Blue Team, DevSecOps, SOC, reverse engineering |
| Developer | Ayyoub El Hariri |
| Repository | ayoubelhariri/SentraSec-7B-v5.1.3 |
| Inference | Local deployment with a compatible GGUF runtime |
Intended users
- Cybersecurity researchers and students.
- Authorized penetration testers and red-team operators.
- Blue-team analysts, SOC teams, and incident responders.
- Application, cloud, network, and mobile security engineers.
- Malware analysts and reverse-engineering practitioners.
2. Core Capabilities
2.1 Red Team – Offensive Security
SentraSec can assist with authorized offensive-security workflows:
- Network reconnaissance and attack-surface mapping.
- Host, port, and service discovery.
- Web application and API security assessment.
- Authentication, authorization, and session-management analysis.
- Input-validation and injection vulnerability investigation.
- Mobile application security assessment.
- Vulnerability triage and exploitability research.
- Controlled proof-of-concept analysis and validation.
- Evidence collection and penetration-testing report preparation.
All active testing must be restricted to systems for which the operator has explicit authorization.
2.2 Blue Team – Defensive Security
SentraSec can assist with defensive-security and security-operations workflows:
- Security event and alert analysis.
- SOC investigation and alert triage.
- Threat hunting and indicator-of-compromise analysis.
- Log and network-traffic interpretation.
- Incident investigation and response planning.
- Malware triage and suspicious-file analysis.
- Vulnerability prioritization and remediation planning.
- System, application, and cloud-hardening recommendations.
- Detection-rule analysis and improvement.
- Remediation verification and reporting.
2.3 Web and API Security
- HTTP request and response analysis.
- Authentication and authorization security assessment.
- Session-management analysis.
- Input validation and injection vulnerability investigation.
- REST and GraphQL API security assessment.
- Security misconfiguration identification.
- OWASP-based vulnerability classification.
- Evidence-based analysis of suspected access-control issues.
2.4 Mobile Application Security
- Android application security analysis.
- APK inspection and reverse-engineering assistance.
- Static and dynamic analysis interpretation.
- Insecure data-storage investigation.
- Mobile authentication and authorization assessment.
- Network communication security analysis.
- Java/Kotlin bytecode and native-library investigation.
- Mobile application vulnerability assessment.
2.5 Reverse Engineering and Binary Analysis
SentraSec supports a planned integration path for Ghidra as a reverse-engineering and binary-analysis component.
Capabilities depend on the installed Ghidra version, available loaders, processor language definitions, and file format:
- Executable and binary file identification.
- PE, ELF, and Mach-O analysis where supported.
- Function discovery and function-level inspection.
- Disassembly and decompiler-output interpretation.
- Imported and exported symbol analysis.
- Strings and cross-reference investigation.
- Call-graph and control-flow analysis.
- Suspicious API and behavior-pattern triage.
- Firmware and embedded-binary inspection where supported.
- Evidence extraction for malware and vulnerability research.
For Android applications, Ghidra can be used to inspect native libraries such as .so files. DEX/Java bytecode should be handled with a suitable Android analysis tool such as JADX. Ghidra is not a universal parser for documents, scripts, archives, or every binary format; unsupported files require format-specific tools.
2.6 Vulnerability and Threat Research
- Vulnerability identification and classification.
- CWE and CVE contextual analysis.
- MITRE ATT&CK technique mapping when supported by evidence.
- OWASP Top 10 classification.
- False-positive investigation.
- Technical impact assessment.
- Risk prioritization.
- Remediation and verification recommendations.
- Correlation of findings from multiple security tools.
3. Security Tool Integrations
SentraSec is designed to work with external tools through controlled Python adapters, command-line interfaces, and REST APIs. Actual availability depends on local installation, configuration, licensing, and permissions.
3.1 Red Team and Application Security
| Tool | Integration method | Main purpose |
|---|---|---|
| Nmap | CLI and XML output | Network discovery and service identification |
| Nuclei | CLI and JSONL output | Template-based vulnerability detection |
| sqlmap | REST API or controlled CLI | Authorized SQL injection testing |
| Burp Suite Professional | REST API and configured proxy | Web application testing and HTTP analysis |
| OWASP ZAP | REST API | Web application security testing |
| Metasploit Framework | Controlled RPC or lab workflow | Authorized exploit research and validation |
| Subfinder | CLI output | Subdomain discovery |
| httpx | CLI and JSONL output | HTTP service probing |
| Katana | CLI and JSONL output | Web crawling |
| Masscan / Naabu | CLI output | Port discovery |
3.2 Blue Team and Detection
| Tool | Integration method | Main purpose |
|---|---|---|
| Wazuh | REST API and alerts | Endpoint monitoring and security operations |
| Suricata | EVE JSON logs | Network threat detection |
| Zeek | Structured logs | Network security monitoring |
| YARA | CLI or Python bindings | Pattern-based file and malware triage |
| OSQuery | SQL-based query interface | Endpoint investigation |
| Sigma | Rule files and converters | Detection-rule analysis |
| MISP | REST API | Threat-intelligence sharing |
| OpenCTI | REST API | Threat-intelligence knowledge management |
| Elastic Security | APIs and exported events | SIEM and security analytics |
| Splunk | REST API | SIEM search and event analysis |
3.3 Reverse Engineering and Malware Analysis
| Tool | Integration method | Main purpose |
|---|---|---|
| Ghidra | Headless analyzer, scripts, exported results | Disassembly, decompilation, and binary analysis |
| JADX | CLI and exported source | Android DEX and APK analysis |
| MobSF | REST API | Mobile application security analysis |
| Frida | Controlled instrumentation | Runtime application analysis |
| YARA | CLI or Python bindings | File-pattern matching |
| CAPE Sandbox | API and report ingestion | Controlled malware behavior analysis |
| Velociraptor | API and collected artifacts | Endpoint investigation and digital forensics |
Integration design principles
- Detect whether a tool is installed and record its version.
- Use a dedicated adapter for each tool.
- Prefer structured output formats such as JSON, JSONL, XML, and SARIF.
- Normalize tool results into a common evidence schema.
- Keep tool execution separate from model-generated reasoning.
- Require explicit scope and authorization for active testing.
- Apply execution timeouts, resource limits, and audit logging.
- Do not treat a tool alert or model interpretation as a confirmed vulnerability without validation.
4. Evidence-Based Security Analysis Workflow
SentraSec is designed to encourage evidence-based vulnerability assessment.
- TARGET – Identify the target asset.
- SCOPE – Record authorization and permitted testing boundaries.
- ASSET – Identify the affected application, host, service, file, or component.
- ATTACK SURFACE – Describe relevant interfaces and exposure.
- OBSERVATION – Record what was observed.
- HYPOTHESIS – State the suspected security issue.
- EVIDENCE – Attach tool output, logs, code references, or reproducible observations.
- VALIDATION – Perform an authorized and safe verification.
- CLASSIFICATION – Confirmed vulnerability, potential issue, false positive, or insufficient evidence.
- IMPACT – Explain realistic technical and business consequences.
- RISK – Assess likelihood and impact.
- REMEDIATION – Recommend corrective actions.
- VERIFICATION – Define how the remediation should be retested.
The model should distinguish confirmed vulnerabilities, potential security issues, false positives, and findings requiring additional evidence.
5. File Analysis Coverage
A file-analysis workflow should identify the file type before selecting an analyzer.
| File category | Example formats | Recommended analysis path |
|---|---|---|
| Windows executable | PE, EXE, DLL, SYS | Ghidra and PE metadata tools |
| Linux executable | ELF, SO | Ghidra and ELF metadata tools |
| macOS executable | Mach-O | Ghidra where supported |
| Android package | APK, DEX, SO | JADX, MobSF, Ghidra for native libraries |
| Firmware | BIN, ROM, ELF | File identification, firmware tools, Ghidra where supported |
| Java archive | JAR, CLASS | Java bytecode and archive analysis tools |
| Source code | PY, JS, JAVA, C, C++ | Language-specific static-analysis tools |
| Documents | PDF, DOCX | Dedicated document parsers and safe content inspection |
| Archives | ZIP, TAR, 7Z | Safe archive inspection and extraction controls |
Files must be treated as untrusted input. Do not execute uploaded samples on the host. Use isolated analysis workspaces, file-size limits, resource limits, and controlled sandboxing for dynamic analysis.
6. Training and Release Information
The SentraSec model draws upon research in intelligent intrusion detection, including hybrid deep-learning architectures, adaptive sample weighting, feature representation and diversification, attention-based learning, consistency regularization, and branch-level regularization strategies.
These research directions aim to improve the detection of sophisticated network attacks, address class imbalance, enhance feature learning, and strengthen the robustness and generalization of security-oriented machine-learning systems.
This release corresponds to the second training stage of the SentraSec development pipeline.
Training objectives
- Improve cybersecurity-domain understanding.
- Enhance structured vulnerability analysis.
- Improve technical reasoning and evidence interpretation.
- Support web, mobile, network, and binary-security research workflows.
- Improve the quality and consistency of remediation recommendations.
- Support analysis of outputs from external security tools.
Release details
| Component | Value |
|---|---|
| Training Stage | Stage 2 |
| Release Version | 5.1.3 |
| Model Format | GGUF |
| Inference | Local deployment |
| Quantization | Refer to the GGUF build configuration |
Detailed training datasets, 1 configs : cves, hf_vuln_patches, exploits 2 mapping CVE→CWE 3 CVE / CWE / CVSS 4 CVE/CWE 1999–2025 5 CVE/CWE nettoyé 6 consensus CVE/CWE 7 code vulnérable 8 snippets vulnérables 9 patches sécurité nixpkgs 10 patches de vulnérabilités 11 sécurité kernel Android 12 MITRE ATT&CK → CVE (~238k) 13 OWASP/MITRE/NIST/cloud (~84k)
7. Installation and Usage
Requirements
- Python 3.10 or later for the Python example.
llama.cppor another compatible GGUF inference engine.- Sufficient RAM for the selected model quantization.
- Compatible CPU or GPU hardware.
- Optional security tools installed separately for their respective integrations.
Option 1: Using llama.cpp
Install llama.cpp using its official documentation:
https://github.com/ggml-org/llama.cpp
Download the GGUF model from this repository.
llama-cli \
-m SentraSec-7B-v5.1.3.gguf \
-c 4096 \
-n 1024 \
-p "Explain how to assess an application's authentication security."
Adjust context size and generation parameters according to your hardware and model configuration.
Option 2: Using Python
Install the Python binding:
pip install llama-cpp-python
Example:
from llama_cpp import Llama
model = Llama(
model_path="SentraSec-7B-v5.1.3.gguf",
n_ctx=4096,
verbose=False,
)
response = model.create_chat_completion(
messages=[
{
"role": "system",
"content": (
"You are SentraSec, an AI cybersecurity "
"research assistant. Provide structured, "
"evidence-based security analysis."
),
},
{
"role": "user",
"content": (
"Explain how to assess an API's "
"authentication and authorization security."
),
},
],
temperature=0.2,
max_tokens=1024,
)
print(response["choices"][0]["message"]["content"])
Note: The chat template must be compatible with the GGUF model metadata.
8. Example Use Cases
Example 1: Web Security
Prompt
Analyze the security risks associated with an API that uses JWT authentication. Explain possible weaknesses, validation methods, and remediation recommendations.
Expected approach
- Identify the relevant attack surface.
- Examine token validation and expiration.
- Assess authorization enforcement.
- Explain safe validation procedures.
- Recommend appropriate mitigations.
Example 2: Mobile Security
Prompt
Explain how to investigate insecure local storage in an Android application using static and dynamic analysis.
Expected approach
- Identify sensitive storage locations.
- Explain APK inspection.
- Examine application storage behavior.
- Evaluate evidence.
- Recommend secure storage mechanisms.
Example 3: Vulnerability Validation
Prompt
Evaluate the evidence for a suspected IDOR vulnerability in an authorized pre-production application. Provide a safe validation methodology and explain how to distinguish a confirmed vulnerability from a false positive.
Expected approach
- Confirm testing authorization and scope.
- Identify the affected resource.
- Compare access controls using approved test accounts.
- Avoid unauthorized data access.
- Document reproducible evidence.
- Provide remediation and verification steps.
Example 4: Reverse Engineering with Ghidra
Prompt
Analyze an authorized Windows executable using Ghidra. Summarize its file format, architecture, imported functions, notable strings, discovered functions, and potentially suspicious code paths. Distinguish direct evidence from hypotheses.
Expected approach
- Identify the file format and architecture.
- Review imports, exports, and strings.
- Inspect relevant functions and cross-references.
- Interpret decompiler output with function addresses.
- Identify suspicious patterns without assuming maliciousness.
- Provide evidence, confidence, and recommended next steps.
Example 5: Blue Team Threat Investigation
Prompt
Analyze the supplied Suricata EVE JSON alerts and identify suspicious network activity. Correlate relevant indicators, explain the evidence, prioritize the alerts, and recommend defensive actions.
Expected approach
- Parse and classify the events.
- Identify relevant source and destination assets.
- Correlate timestamps and indicators.
- Distinguish confirmed observations from hypotheses.
- Recommend containment and investigation steps.
9. Responsible Use and Security
SentraSec is intended for legitimate cybersecurity research, defensive security engineering, authorized penetration testing, reverse engineering, and educational purposes.
Users must:
- Obtain explicit authorization before testing systems.
- Respect defined testing scopes.
- Avoid accessing or modifying unauthorized data.
- Prefer non-destructive validation methods.
- Protect sensitive information and security evidence.
- Follow applicable laws and organizational policies.
- Run untrusted binaries only in appropriately isolated environments.
External tool execution must be governed by authorization checks, scope validation, least-privilege access, execution limits, and audit logging.
Model outputs are AI-generated and may contain inaccuracies. Findings must be independently verified before being treated as confirmed vulnerabilities.
SentraSec does not replace professional security assessments or human review.
10. Limitations
- Model outputs may contain hallucinations or technically incorrect information.
- Vulnerability classifications may require independent verification.
- Performance depends on hardware, quantization, context length, and inference configuration.
- The model does not guarantee vulnerability or malware detection.
- Ghidra analysis depends on supported file formats, loaders, processor definitions, and analysis configuration.
- Decompiler output is an interpretation and may not reproduce the original source code.
- External tool integrations require separate installation, configuration, and licensing where applicable.
- Training-stage improvements should be validated through reproducible benchmarks.
- No claim of superiority over other cybersecurity models is made without comparative evaluation.
11. Model Integrity
The following checksums were supplied in the source README. Recalculate both against the exact GGUF artifact before publication; any change to the model file will produce different hashes.
| Algorithm | Supplied checksum |
|---|---|
| SHA-256 | ce4ffd65d837702e62aa6d58201ac888efb52ae5896ee2fb1d5636ab529d776c |
| SHA-512 | 108cb01b20accbd5fa2c5bb764c46d48573f8851822e5089186ed63ef5831028c594167e17ceb654366b36155812685be0bade32f581b7bf64e36341bb79d769 |
To calculate a fresh SHA-256 checksum:
Get-FileHash ".\SentraSec-7B-v5.1.3.gguf" -Algorithm SHA256
12. License and Attribution
The license for this release is marked as other in the repository metadata. The applicable license terms must be explicitly documented before public distribution.
Before publishing, verify and document:
- The license and redistribution requirements of the exact base checkpoint used.
- The licenses and usage restrictions of all training and evaluation datasets.
- The licenses of third-party code, tools, and model components.
- Any attribution, notice, or source-disclosure obligations.
Do not assume that the license of a tool or an inference runtime automatically determines the license of the model weights. Include the applicable license text or a clear license statement in the repository.
13. Developer and Researcher
Ayyoub El Hariri
Cybersecurity Researcher | AI & Machine Learning Engineer | Senior Software Engineer
Ayyoub El Hariri is a cybersecurity researcher and AI engineer specializing in the convergence of Artificial Intelligence, cybersecurity, and advanced software engineering. His work focuses on developing intelligent security solutions, applying machine learning and large language models to cybersecurity challenges, and advancing automated vulnerability analysis and security assessment methodologies.
With more than eight years of professional experience in multinational technology companies, including Capgemini, Alten, and Econocom, he has developed expertise in software engineering, technical architecture, secure application development, big-data ecosystems, and the integration of AI-driven technologies.
He holds a Master's degree in Informatics – Security of Systems and Services from ENSIAS and pursues doctoral research focused on IoT network security and the application of Artificial Intelligence to intrusion detection and cybersecurity.
His research and engineering activities combine academic investigation with practical cybersecurity implementation, with an emphasis on building intelligent, locally deployable AI systems for security research and vulnerability assessment.
Research and Technical Expertise
- Artificial Intelligence for Cybersecurity: Development and adaptation of AI models, deep-learning architectures, and intelligent security-analysis systems.
- Large Language Models: Fine-tuning, customization, and deployment of domain-specific language models for cybersecurity research and automated security reasoning.
- IoT Security and Intrusion Detection: Machine-learning and deep-learning approaches for network-traffic analysis, anomaly detection, and intelligent intrusion detection.
- Web and Mobile Application Security: Secure software development, application penetration testing, reverse engineering, vulnerability assessment, and security auditing.
- Automated Vulnerability Research: Evidence-based vulnerability identification, validation, classification, risk assessment, and remediation.
- Security Engineering and Architecture: Design and implementation of secure software architectures, microservices, APIs, and cloud-based solutions.
- Big Data and Intelligent Systems: Integration of large-scale data-processing ecosystems with machine learning and AI technologies.
SentraSec Project
SentraSec is an AI-driven cybersecurity research initiative developed by Ayyoub El Hariri. It explores specialized language-model applications for cybersecurity research, intelligent vulnerability analysis, web and mobile application security assessment, reverse engineering, and evidence-based security validation.
The project aims to bridge academic cybersecurity research and practical AI engineering through specialized model adaptation, local deployment, and domain-oriented intelligence.
- Developer: Ayyoub El Hariri ayyoub_elhariri@um5.ac.ma
- Project: SentraSec
- Focus: AI-driven cybersecurity research and intelligence
Bridging Artificial Intelligence, Cybersecurity Research, and Advanced Software Engineering.
14. Acknowledgments
SentraSec builds upon the open-source AI and cybersecurity research community.
Acknowledgment goes to the researchers and developers contributing to open-source language models, security-analysis frameworks, reverse-engineering tools, and cybersecurity datasets.
SentraSec — Advancing AI-Driven Cybersecurity Research.