/act101:security-surfacefrom act101
Produces an application-security surface report for a file, module, or whole repo. Scans for dangerous constructs, secrets, taint flows, and AI-specific risks like prompt injection and hallucinated dependencies.
Ships in act101. 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.
| Tool | Purpose | Call | Tier |
|---|---|---|---|
unsafe_surface | Dangerous constructs: eval, raw SQL, FFI, unsafe blocks, reflection, unsafe deserialization | unsafe_surface with file | Free |
secret_surface | Credential params, tokens, signing keys, env-secret reads, hardcoded secrets | secret_surface with file | Engineering |
taint_flow | Source-to-sink data-flow paths from an entry function | taint_flow with target and file | Architecture |
analyze_surface | API surface at the module boundary, as severity context | analyze_surface | Engineering |
scan | Whole-repo superset: credentials (pattern plus entropy), AI-config backdoors, MCP-config RCE, typosquat or hallucinated dependencies, Actions expression injection, LLM-output-to-exec flows, prompt-injection surfaces, plus the AI-Code Health Score | scan with root | Free for public repos; scan entitlement for private |
The skill's tier is Architecture, the maximum of the composed tools.
For a whole-repo read, call scan; it runs the full detector set across the
tree. Use the per-file tools for a focused file or module surface.
unsafe_surface(file): dangerous constructs with confidence.secret_surface(file): secret-touching symbols.main), run
taint_flow(target, file): source-to-sink flows plus the frontier.analyze_surface: how exposed the module is.If taint_flow is unavailable (below Architecture), run steps 1, 2, and 4 and state
"taint flows not analyzed (Architecture tier required)" in the verdict.
| Verdict | Criteria |
|---|---|
| Low | No taint flows, with taint modeled for this grammar; no high-confidence unsafe items; no hardcoded secrets |
| Medium | Unsafe items present but no tainted flow reaches them; or secret-touching code without hardcoded literals |
| High | At least one source-to-sink taint flow; or a hardcoded secret literal |
| Critical | A taint flow into a RawSql, CommandExec, or Eval sink, or a hardcoded signing key, on an exposed boundary |
Take the highest verdict that applies. When a tool was skipped, or modeled_kinds
or frontier show the analysis was partial, say so ("flow analysis incomplete:
unresolved callees …").
taint_flow reports what it modeled in modeled_kinds per call, and there is no
fixed list of supported grammars. A non-empty taint entry in modeled_kinds with
an empty flows result is a genuine "no source-to-sink flow found". An empty or
absent taint entry means taint was not modeled for this grammar: report the taint dimension as "not
analyzed", name the language, and give no Low verdict on that basis.
## Security Surface: <file / module>
**Severity: <Low / Medium / High / Critical>**
- Taint flows: N (sinks: <RawSql x2, Eval x1, …>) — or "none" / "not analyzed (tier)"
- Unsafe constructs: N (<eval x1, raw_sql x2, …>)
- Secret touches: N (<hardcoded_literal x1, token_var x2, …>)
- Frontier (unresolved tainted callees): <list, or "none">
**Top risks:** <ranked source-to-sink flows and high-confidence unsafe or secret items>
**Suggested:** <e.g. "parameterize the SQL at <loc>", "move the hardcoded key to env", "resolve <callee> to complete flow analysis">
**Coverage caveat:** <modeled_kinds gaps / skipped tools / partial flow>
Inline by default: return the summary and write no files. For human-initiated audits
or a High or Critical verdict, follow the artifact steps in
../analysis-protocol/references/protocol.md: write .act/runs/<YYYY-MM-DD-HHMMSS>/
with manifest.json, raw/*.json, and report.md.
Reads project-map.md for context (entry points, risky files). Never modifies it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub act101-ai/act101 --plugin act10126 skills in this plugin
/agent-safety-auditUse before an autonomous agent edits a sensitive or high-blast-radius file, or to judge an edit it already made. Composes secret surface, taint flow, blast radius, API width, and the repo scan into one safety verdict./architectural-refactoringUse when breaking circular dependencies, splitting god classes, reducing coupling between modules, extracting interfaces at seams, or executing any structural change identified by an architecture audit. Requires a prior architecture-audit run that produced project-map.md and a report./architecture-auditUse when asked to audit architecture, get the full structural picture of a codebase, assess overall health or porting readiness, or find module boundaries, circular dependencies, coupling hotspots, dead code, or code smells. Full hypothesis-driven audit, optionally enriched with coverage and git evidence./boundary-analysisUse when looking for extraction candidates, planning a module split, analyzing module boundaries, or asked "where should I split this?". Produces ranked extraction candidates with cut costs, layer violations, interface width, orphan types, and a decomposition sequence./change-impactUse before modifying a file or symbol, or when asked "what breaks if I change X?". Returns a blast-radius, test-coverage, and cycle-risk verdict immediately, with no follow-up investigation./code-generationGenerates boilerplate (constructors, accessors, builders, equals and hash methods, JSON serialization, toString, interface stubs, test stubs) from a type's existing fields, previewed and reversible. Use when creating any of that boilerplate from an existing class or struct, or when porting a type and its boilerplate to another language. Business logic is written by hand.Other plugins' skills for the same job