Skip to content
Back to skills

Risk Report

ASecurity

Emit the assessment as an HTML Artifact — the security graph, attack-surface facets (reach, violated tools, exfil sinks, attack paths), findings by weakness and control, and the ARS. Use when a security engineer needs a shareable report at the end of a local assessment.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 25, 2026
ai-agentsnodeawsgitsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add Asterguard/asterguard-skills --skill risk-report --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Risk Report?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Risk Report
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asterguard-risk-report/badge)](https://www.skillsdirectory.com/skills/asterguard-risk-report)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: risk-report
description: Emit the assessment as an HTML Artifact — the security graph, attack-surface facets (reach, violated tools, exfil sinks, attack paths), findings by weakness and control, and the ARS. Use when a security engineer needs a shareable report at the end of a local assessment.
---

# Risk Report

Fold the enriched graph + findings into a single, shareable HTML Artifact rendered in the client's
harness. This is the deliverable; it reads the local artifacts and the AsterVault enrichment, and
renders — no server round-trip to display.

## When to Activate

- At the end of the pipeline, once findings + the graph exist.
- The engineer asks for a report, a BOM view, or an attack-surface summary.

## Core Concepts

- **Attack-surface facets** are derived from the graph (not stored): `reach` (regulated store ·
  classes · via-identity · columns), `tools_violated`, `sinks`, `paths`. Get them from
  `graph.enrich`, or compute from the local graph if offline.
- **One number:** the ARS (0–10, CVE-calibrated) from `risk.score` is the headline; every "overall
  risk" surface shows the same number.
- **Grouping that reads:** CVEs collapse to one row per vulnerable package (N packages · M CVEs),
  OS/base-image separated from app deps; findings group by weakness and by control family.

## Method

1. Call `graph.enrich` + `risk.score` (or load `./.asterguard/graph.json` + `findings.json`).
2. **Map the JSON to the render-model** (see `references/visual-grammar.md`): nodes→{id,label,sub,kind},
   edges→{from,to,label,onPath} (onPath from the flow's `path_labels`), the path + badges (`proven`
   from a `canary.verify` hit), the control chips (from each flow's `missing_control` + state), and the
   ARS band from `risk.score`.
3. **Render data-driven, not hand-placed, and publish as an Artifact.** Two templates, both auto-layout:
   - `templates/report.html` (**the composite** — use this by default): replace its four consts with the
     **raw tool JSON** — `ENRICH` = `graph.enrich`, `CONTROLS` = `controls.map`, `RISK` = `risk.score`
     (features on free, +ars on enterprise), `SCA` = the package roll-up or null. It draws the risk
     features, the information-flow (proven path), the security graph, and the crosswalk from that JSON.
   - `templates/attack-path.html` (the focused single-path view) for just the attack path.
   - `templates/engagement-console.html` (**the offensive/pentest view**): replace its two consts with
     the engagement roll-up + the red-team **run records** (`ENGAGEMENT` = `./.asterguard/engagement.json`,
     `RUNS` = `./.asterguard/runs/*.json`; schema in `behavioral-redteam/references/run-record.md`). It
     draws the risk cards, the lethal-trifecta kill-chain, and one transcript panel per run (attacker/agent
     turns, canary highlighted, per-turn verdicts for a multi-turn crescendo) with out-of-band evidence,
     verdict, ASR@budget, weakness and control chips. This is the view `pentest-report` renders.
   Both graph templates lay out *any* enrich output (layers by path distance, color by kind, proven path
   red). Add more views (BOM, exec scorecard, control coverage) the same way: feed a template the JSON.
4. Numbers only from the data; the picture is computed from the schema, never drawn by hand.

## Practical Guidance

- **Collapse, don't drop:** a full container SBOM is hundreds of OS CVEs — show vulnerable packages
  with drill-down, not a flat CVE wall (the graph holds the detail).
- Reach reachable by an **anonymous/external** identity is the lede — surface it at the top.
- Keep the report self-contained; it must render from the local artifacts even with no network.

## Output formats

Besides the HTML attack-surface Artifact, risk-report emits **SARIF** (`./.asterguard/report.sarif`)
when asked (`formats: [sarif, html]`), so the same findings feed GitHub code-scanning / CI gates. The
HTML stays the human view, SARIF the machine view — one finding set, two renderings.

## Integration

- all graph skills + security-judge — provide graph + findings
- AsterVault `graph.enrich` / `risk.score` — facets + ARS
- Output: an HTML Artifact (the console/BOM view), shareable from the harness

## References

- [Visual grammar (shared across views)](./references/visual-grammar.md)
- [Composite report renderer — inject graph.enrich/controls.map/risk.score JSON](./templates/report.html)
- [Attack-path renderer template (data-driven)](./templates/attack-path.html)
- [Engagement console (offensive) — inject engagement.json + runs/*.json](./templates/engagement-console.html)
- [Offensive run-record schema (the console's input)](../behavioral-redteam/references/run-record.md)
- [Graph schema (SSOT)](../../docs/graph-schema.md)
- [AsterVault MCP tools](../weakness-graph/references/astervault-tools.md)

Files in this skill

  • SKILL.md4.7 KB
  • references/visual-grammar.md2.5 KB
  • templates/attack-path.html10.2 KB
  • templates/engagement-console.html15.3 KB
  • templates/report.html14.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.