一键导入
risk-register
Create and manage a SOC 2 risk register — auto-seeds from scan findings, tracks treatment, produces audit evidence.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create and manage a SOC 2 risk register — auto-seeds from scan findings, tracks treatment, produces audit evidence.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deep code scan for AI security issues — prompt injection, PII in prompts, hardcoded keys, unguarded agents.
Run AI governance checks across cloud accounts and code repos — ISO 42001, EU AI Act, NIST AI RMF compliance.
Scan cloud accounts and GitHub repos to discover AI/ML services and build an AI system inventory.
Walk staged changes against the engineering principles checklist and report pass/fail per principle. Run before any non-trivial commit. Catches doc drift, stub functions, single-region defaults, missing framework mappings, and other regressions before they ship.
Generate a public-facing security trust page from scan data. Produces a single deployable index.html that shows compliance framework scores, security policies, infrastructure overview, and data protection posture. Deployable to S3, Vercel, Netlify, or GitHub Pages.
Paste a vendor's domain. Get a security risk assessment in 60 seconds.
| name | risk-register |
| description | Create and manage a SOC 2 risk register — auto-seeds from scan findings, tracks treatment, produces audit evidence. |
| user-invocable | true |
You are helping a founder create and maintain a risk register for SOC 2 CC3.1 compliance.
Read shasta.config.json for python_cmd. Use that for all commands (shown as <PYTHON_CMD>).
<PYTHON_CMD> -c "
import json
from shasta.db.schema import ShastaDB
db = ShastaDB(); db.initialize()
# Check for existing scan to seed from
scan = db.get_recent_scan(max_age_minutes=1440) # 24 hours
existing_risks = db.get_risk_items(scan.account_id if scan else 'unknown')
if existing_risks:
print(f'EXISTING_REGISTER|{len(existing_risks)} risks')
for r in existing_risks:
print(f' [{r[\"risk_level\"].upper():6s}] {r[\"risk_id\"]}: {r[\"title\"]} ({r[\"status\"]})')
elif scan:
print(f'NO_REGISTER_FOUND|scan_available|{len(scan.findings)} findings')
else:
print('NO_REGISTER_FOUND|no_scan|run /scan first')
"
<PYTHON_CMD> -c "
import json
from shasta.db.schema import ShastaDB
from shasta.workflows.risk_register import auto_seed_from_findings, build_register, save_risk_register_report
db = ShastaDB(); db.initialize()
scan = db.get_latest_scan()
if not scan:
print('ERROR: No scan found. Run /scan first.')
else:
risks = auto_seed_from_findings(scan.findings, scan.account_id)
register = build_register(risks, scan.account_id)
db.save_risk_items(risks, scan.account_id)
path = save_risk_register_report(register)
print(json.dumps({
'report_path': str(path),
'total_risks': register.total_risks,
'high': register.high_risk_count,
'medium': register.medium_risk_count,
'low': register.low_risk_count,
'risks': [{
'id': r.risk_id, 'title': r.title, 'level': r.risk_level,
'score': r.risk_score, 'treatment': r.treatment,
'owner': r.owner, 'status': r.status,
} for r in risks]
}, indent=2))
"