/appsec-advisor:verify-baselinefrom appsec-advisor
Read-only check verifying whether the secure-coding baseline is wired into Claude Code's instructions across project and user scopes. Reports missing, outdated, or disabled baselines; --enforce fails for CI.
Ships in appsec-advisor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are checking whether the secure-coding baseline is loaded into Claude Code's instruction files. This skill is read-only — do not write files, do not install anything, do not dispatch sub-agents, and do not review the repository's code against the baseline.
An instruction file that never loads fails silently: the assistant behaves as if the rules do not exist and nothing reports the gap. That is the question here.
--help — inline help (early exit)If the user's arguments contain --help or -h, print this block verbatim and exit.
/appsec-advisor:verify-baseline — Read-only: is the secure-coding baseline loaded?
USAGE
/appsec-advisor:verify-baseline [--repo <path>] [--json] [--enforce]
FLAGS
--repo <path> Repository to check (default: current working dir)
--json Emit the result as machine-readable JSON
--enforce Fail for missing, outdated, foreign, disabled or invalid policy
EXIT CODES
0 The state was reported. This is the default: which rules a machine
loads is your configuration, not something this command fails on.
1 Only with --enforce, or in a build whose organization profile requires
a baseline: none is loaded, or only a foreign one. A version newer than
the one this build names passes only if its installation is valid.
WHAT IS CHECKED
Claude Code's instruction files — project CLAUDE.md, .claude/CLAUDE.md,
CLAUDE.local.md, .claude/rules/*.md, ~/.claude/CLAUDE.md,
~/.claude/rules/*.md, and the organization's managed-policy CLAUDE.md —
plus every file they pull in with an @ import.
SessionStart hooks of the AI Secure Coding Baseline's own installer
(aiscb) count too, from the settings.json files Claude Code applies: they
load the rules as hook output. AISCB_DISABLE=1 switches those off for the
session, and the report says so.
Files another tool reads and Claude Code does not — AGENTS.md,
.github/copilot-instructions.md — are reported separately, as is a copy in
the repository that nothing imports. Those are not loaded, but they are the
difference between installing the baseline and wiring up what is there.
Modular installations also require a valid adapter, catalog, loader and all
pinned artifacts. Available modules are not evidence of loaded bodies.
This checks installed files and wiring, not live context or compliance.
AISCB_DISABLE does not disable a modular core.
Related: /appsec-advisor:install-baseline — installs it.
/appsec-advisor:update-baseline — refreshes an installed copy.
/appsec-advisor:remove-baseline — stops it loading again.
After printing, exit.
Recognized flags: --repo <path> --json --enforce --help | -h
Default REPO_ROOT to the current working directory.
If the invocation contains any token that is not one of the flags above — or is
not the value consumed by --repo — DO NOT proceed. Print this to stderr,
substituting <TOKEN>, and exit with status 2:
Error: unknown argument '<TOKEN>'
/appsec-advisor:verify-baseline accepts only:
--repo <path> Repository to check (default: current working dir)
--json Emit the result as machine-readable JSON
--enforce Fail for missing, outdated, foreign, disabled or invalid policy
--help, -h Show full help and exit
Run `/appsec-advisor:verify-baseline --help` for details.
python3 "$CLAUDE_PLUGIN_ROOT/scripts/baseline/baseline_check.py" --repo "$REPO_ROOT" $JSON_FLAG $ENFORCE_FLAG
The helper's output is the deliverable. Print it as-is and propagate the exit
status. Add no commentary in --json mode.
In text mode only, and only when it tells the user something the output does not:
invalid — report the missing or altered modular artifacts; do not suggest a downgrade or silently install another copy.aiscb? in a fresh session reports context without reading files.user scope only — worth saying that it applies on this machine
and that a colleague cloning this repository gets no baseline.policy scope — deployed organization-wide through Claude Code's
managed policy. It applies to every session on this machine and cannot be
switched off locally, so there is nothing for the user to install or maintain.+, e.g. aisec-0.1+acme) — the rules were
adapted by whoever derived them and are not the published text.other — some baseline is loaded but not the configured one. Name both ids
and stop; which one should win is the user's call, not yours.newer — the loaded baseline is a later version of the configured one.
Nothing to do, and do not suggest installing: that would write the older text
over the newer rules.Then stop. Do not offer to run a threat model, do not grade the repository against the baseline's rules, and do not propose code changes.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub appsec-foundry/appsec-advisor --plugin appsec-advisor28 skills in this plugin
/abuse-casesList the technical and business abuse cases defined for a repository — the plugin's standard cases, the organization profile's cases, and the repository's own cases in docs/security/abuse-cases/ — each with its origin, kind, and title. Use for "which abuse cases are defined?", "welche abuse cases gibt es?", "show our business abuse cases", or to look up the ID to pass to analyze-threats --abuse-case. Read-only; it does not check a case against the code. For the outcome a past run recorded, use ask-security-assessment./analyze-threatsAdvisory threat analysis on request: a planned design, selected code changes, a concrete threat hypothesis against named files or directories at a Git revision, or a defined abuse case by its ID. Combines source evidence with requirements, business context, and an optional threat model. Reports findings, scenarios, assumptions, and questions whose answers change the assessment. Hypothesis checks distinguish supported, not confirmed in scope, and unresolved; no result proves safety. Answers can be saved explicitly to a feature file. Never edits code, changes the threat model, or grants security approval./appsec-analyzerSecurity assessment of one repository through the deterministic controller; writes security-assessment.md and security-assessment.yaml to a private directory per application under the user data directory, or to --output. Runs full assessments only: --incremental, --rerender, --dry-run, --base, --pr-mode, --restore-from and a free-text focus are refused. Without a budget flag the depth sets a hard budget (quick 10, standard 20, thorough 40 USD). Models are fixed per role, not taken from the session; --model, --stride-model, --triage-model, --merger-model and --reasoning-model change them. --width sets the widest progress line (72 by default). Stop a running assessment with --stop./ask-security-assessmentAnswer ANY question about the threat model in this repo — read-only Q&A over the committed threat-model.yaml. The default surface for every natural-language query about the model, however simple: does one exist at all ("is there a threat model here?", "gibt es hier ein bedrohungsmodell?"), how it stands ("how bad is it?", "is it still current?"), anything about its contents ("what are the critical findings?", "does it cover SSRF / IDOR / auth?", "which findings touch the payment service?", "is there a fix for F-003?", "welche kritischen findings gibt es?", "deckt mein bedrohungsmodell XSS ab?"), and meta questions ("what does P1 mean?", "what is STRIDE here?"). Grounds every data answer in the model and cites F-ids; never analyzes code, re-scores, spawns agents, or writes files. Prefer this over show-security-assessment for anything phrased as a question — show only prints a fixed summary block on explicit request. To act on findings use triage-security-assessment; to (re)generate use appsec-analyzer./audit-security-requirementsAudit the current repository against a security requirements catalog and verify whether each requirement is implemented. Requirement IDs follow your catalog's own naming scheme (e.g. SEC-CSP-1, SCG-HARDENXML, or anything your YAML defines); tagging code with those IDs is optional and not required. Prints open requirements to the conversation with color-coded status and concise evidence. Optionally saves Markdown/PDF reports. With --json or --gate it also persists a deterministic structured verdict (.requirements-audit.json) and can act as a CI gate./authnz-reviewStandalone AuthN/AuthZ review of any repository. Runs three deterministic Python scanners (route inventory, auth-check scanner, IDOR confirmer) and dispatches a specialized agent that reasons over the combined output: cross-component IDOR chains, RBAC coverage gaps, JWT misconfiguration, and privilege-escalation signals. Optionally annotates findings with violated requirement IDs from a requirements catalog, and exports the findings as pentest tasks for an AI pentest agent. Does NOT require a prior threat model run. Prints results to the console; file output only with --save or --pentest-tasks.Other plugins' skills for the same job