appsec-advisor

⚠️ Beta. appsec-advisor is under active development. Commands, schemas, and output may change without notice.
appsec-advisor is a Claude Code plugin that bundles application security tools for a repository. The tools read code and configuration, and each finding points to the code it is based on.
| Tool | What it does | Command |
|---|
| AppSec Analyzer | Assesses the whole application: architecture, security controls, findings, and what to fix first. | /appsec-advisor:appsec-analyzer |
| Security Score | Quick 0–100 score from the scanners alone, without a model. | /appsec-advisor:security-score |
| Threat Analyst | Analyzes a planned feature or a code change for threats. | /appsec-advisor:analyze-threats |
| Threat Model | Writes and maintains a threat model from requirements and design documents. | /appsec-advisor:create-threat-model |
| Requirements Audit | Checks the repository against a security requirements catalog. | /appsec-advisor:audit-security-requirements |
| Developer tools | Secure-coding baseline, security hints, and change reviews for Claude Code and CI. | /appsec-advisor:install-baseline, … |
Quick start · AppSec Analyzer · Security Score · Threat Analyst · Threat Model · Requirements Audit · Developer tools · Enterprise rollout · Documentation · How the plugin is built · Contributing
Security and data handling
[!IMPORTANT]
Treat scanned repositories as untrusted input. Repository content goes into the model context and may contain prompt injection. Untrusted mode is on by default; keep it on, and scan third-party or vendor code in a container or VM. See Untrusted repositories.
An assessment sends selected source code, manifests, configuration, and any business context you supply to Anthropic. Secrets found in the code are masked. The assessment needs access to api.anthropic.com and cannot run air-gapped. Reports are rendered from validated data, and a run fails before publishing anything if an unmasked secret is found in its output.
Quick start
You need Claude Code, git, and Python 3.10+ with the PyYAML and jsonschema packages, for example installed with python3 -m pip install PyYAML jsonschema.
1. Install the plugin
claude plugin marketplace add appsec-foundry/appsec-advisor
claude plugin install appsec-advisor@appsec-foundry
If GitHub SSH access is not set up, run export CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 first. Update later with claude plugin update appsec-advisor@appsec-foundry and restart Claude Code.
To use the development branch instead, clone it and pass the checkout to Claude Code:
git clone --branch dev https://github.com/appsec-foundry/appsec-advisor.git /path/to/appsec-advisor
cd /path/to/repository-to-assess
claude --plugin-dir /path/to/appsec-advisor
2. Run the AppSec Analyzer
Start Claude Code in the repository you want to assess and allow the commands the assessment needs:
/appsec-advisor:check-permissions --update
This adds the missing rules, including Bash(*), to the repository's .claude/settings.local.json. Restart Claude Code, then run:
/appsec-advisor:appsec-analyzer
The results (security-assessment.md and security-assessment.yaml) go to a directory under your user data directory, not into the repository. /appsec-advisor:status shows where. Use --output to choose another directory.
An assessment usually takes tens of minutes; thorough runs can take over an hour. The plugin chooses the models itself, independent of your Claude Code session model, and stops at a cost limit: 10 USD for quick, 20 USD for standard, and 40 USD for thorough runs. See model selection and depth and cost.