Evidence-backed AppSec for AI applications and agents.
Audit AI/LLM application code before commit, PR, merge or deployment.
AI AppSec combines a pinned static-analysis engine with explicit coverage, structured findings, scan receipts and proof-of-fix so the result says both what was found and what was actually checked.
The question it answers
Is this AI application code introducing a security risk?
AI AppSec is intentionally focused on AI/LLM application source security. It checks for security signals across the code developers are shipping, rather than attempting to provide complete assurance for the entire AI system.
What v0.1.0 checks
AI AppSec checks for security risks and signals including:
Unsafe AI-output execution
Secrets exposure
RAG and model-integration risk
Insecure AI API usage
Security control gaps
Prompt/input-related risk signals
These are security signals, not guarantees of detection. Finding kinds include PRESENCE, RISK_SIGNAL, CONTROL_GAP, and VULNERABILITY with severities from CRITICAL to INFO.
How the scan works
AI AppSec uses a pinned Semgrep 1.173.0 execution engine with a bundled Public Core rulepack. The package adds AI-focused security checks, explicit coverage accounting, evidence semantics, scan receipts, proof-of-fix and the MCP interface around that execution. Semgrep is an external engine installed separately. AI AppSec does not claim to have invented Semgrep.
The scan reports what it did not prove.
COMPLETE
PARTIAL
ERROR
Missing evidence is not a pass. A PARTIAL scan cannot establish absence of findings.
Coverage accounting includes:
Evidence, not just output.
Scan Receipt
Evidence Envelope
Semantic Security Checks
Proof-of-Fix
Use it with an AI coding agent.
AI AppSec exposes a focused security check through MCP. The coding agent can request a scan, inspect findings, explain findings, help change code, and rescan. The independently executable scanner determines the structured findings.
{
"mcpServers": {
"ai-appsec": {
"command": "npx",
"args": ["ai-appsec"]
}
}
}Primary MCP tool: scan_ai_security
Natural language examples your agent can handle:
- "Audit this AI agent before I push."
- "Review this change for security problems."
- "Check this AI application before merge."
- "Run a security scan on this code."
Install and setup
npm install -g ai-appsecai-appsec doctorChecks prerequisite status (Semgrep availability).
ai-appsec setupInstalls and configures the required Semgrep engine. May require network access. Normal scans operate locally after prerequisites are installed.
Semgrep is NOT bundled with this package. It is an external engine installed separately. See THIRD_PARTY_NOTICES.md in the repository for details.
Limitations
- -Static analysis only - does not execute target code
- -No runtime behavioral assurance
- -No compliance certification
- -No full-system AI assurance
- -Semgrep must be installed separately (ai-appsec setup)
- -Setup may require network access
- -Tenant isolation is a separate product (MCP Tenant Isolation)
- -Runtime LLM verification is a separate product (LLMVerify)
Technical identity
HAIEC DEVELOPER SECURITY
SOURCE SECURITY
AI AppSec
Current page
BOUNDARY SECURITY
MCP Tenant Isolation
Explore ->
RUNTIME
LLMVerify
Explore ->
Secure the code. Protect the tenant boundary. Verify the model interaction.
MIT licensed. Powered by HAIEC. No HAIEC account or API key required.