Security
Security evaluation — static audit (STRIDE, OWASP Top 10, code review), external web application pentest checks, and the finding record both share.
1 command · 3 skills
Look at a web application the way an attacker would, and write down what it finds — from the inside reading the code, and from the outside testing the running system.
What it does
Two methods, and the vocabulary they share:
audit-security— the static counterpart. STRIDE threat modelling, the OWASP Top 10, and PHP vulnerability assessment, against the source. For a security review, a threat model, or a vulnerability assessment of a web application.pentest-external-webapp— the external evaluation. The check list an external white-box, intrusive penetration test runs against an internet-facing web application: scope and authorisation first, then reconnaissance, scanner hypotheses, seven evidenced manual checks with explicit pass/fail criteria, and a regression pass over a prior engagement’s findings. Ships a runnable, read-only probe script and the OWASP Web Security Testing Guide catalogue as references.security-findings— the shared vocabulary. One finding record, one severity scheme on CVSS v4.0, one status lifecycle, and one report shape, so a source finding and a runtime finding can sit in the same report and be compared. It carries no detection method: the two skills above supply that, and this one says how to write down what they found.
The two methods do not replace each other: a conclusion about an authorisation bug is far stronger with the code read, and a header or port finding exists only at runtime. The third skill is what keeps them from drifting into two dialects.
/devbot:pentest-webapp <project> runs the external evaluation against a
named project. It resolves the project — by name or path, asking when neither is given — loads that
project’s memory and the skill, and then stops at the authorisation gate the skill defines: nothing
leaves the machine before every line of it is answered. The report is printed in the conversation and
offered to the project’s reference/ vault, never written silently.
Contents
| Type | Name | Purpose |
|---|---|---|
| Command | pentest-webapp |
Evaluate a project’s internet-facing web application against an external pentest baseline. |
| Skill | audit-security |
Use when performing a security review, building a threat model, or assessing a source tree for vulnerabilities. Triggers on ‘STRIDE’, ‘OWASP’, ‘CWE’, ‘threat model’, ‘security audit’, ‘authorisation check’, ‘dependency audit’, ‘hardcoded secrets’. |
| Skill | pentest-external-webapp |
Use when evaluating a running, internet-facing web application against an external pentest baseline, or re-testing a prior engagement’s findings. Triggers on ‘pentest’, ‘penetration test’, ‘external webapp test’, ‘re-test the pentest findings’. |
| Skill | security-findings |
Use when recording, scoring, re-checking or reporting a security finding. Load it when devbot:audit-security or devbot:pentest-external-webapp produces findings, and when reading or re-testing a finding record an earlier session wrote. |
Configuration
No project configuration is required. The pentest skill’s probe script needs curl; the open-port
check treats 80 and 443 as expected and everything else as a finding.
Tooling
scripts/tooling.sh is one façade over four delivery backends, so the skills name a tool and never
learn whether it is a local binary, a uvx invocation, a container or a system package:
| Backend | Tools | Installed how |
|---|---|---|
go |
nuclei, ffuf, gitleaks |
go install, pinned in tooling.lock |
uvx |
semgrep, bandit, sqlmap |
resolved per call; pinned once installed |
docker |
zap, trivy, metasploit |
docker pull, pinned by digest |
system |
nmap, tcpdump, hydra, nikto |
your package manager — never auto-installed |
install --locked reproduces the lock exactly: it resolves nothing new, and it refuses a tool the
lock has no entry for rather than guessing. The lock is written by a normal install, so the first
run resolves and every later one can be reproduced.
tooling.sh check prints what is present; a check whose tool is absent is recorded as skipped, never
as passed. Provisioning reaches the network, so devbot install only reports unless
SEC_TOOLS_AUTO_INSTALL=1 is set, while devbot update runs the install pass. Binaries live under
storage/security-tools/, outside the committed tree; the lock lives at
src/agentic/security/tooling.lock and is committed, because a lock outside the repository
reproduces nothing.
SEC_TOOLS_DOCKER_NETWORK opts a container run out of its default --network none when the check
must reach the target.
Findings store
scripts/findings.sh owns the project’s findings — one JSON record per line in
<devbot_dir>/memory/latent/security/findings.jsonl, so a verdict outlives the report it was written
in.
| Verb | What it answers |
|---|---|
check |
does every record validate, and what is the store’s shape |
add |
append one record, validated against the vocabularies |
list --file <path> |
what we already know about this file |
stale |
which findings predate the file they describe |
gate --base <ref> (or on stdin) |
PASS / REVIEW / BLOCK for a diff, exit 0 / 1 / 2 |
The gate fails closed: a missing store, an unparseable store and an empty change set all answer
REVIEW, never PASS. Needs python3.
See also
- Architecture — the security constraints
architecture-rulescarries