archsutra-ai 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +56 -6
  2. package/README.md +84 -12
  3. package/dist/audit.js +125 -44
  4. package/dist/cli.js +184 -96
  5. package/dist/drift.js +29 -15
  6. package/dist/fsutil.js +117 -20
  7. package/dist/history.js +40 -0
  8. package/dist/html.js +10 -8
  9. package/dist/map.js +26 -5
  10. package/dist/mcp.js +70 -55
  11. package/dist/redact.js +24 -11
  12. package/dist/report.js +69 -19
  13. package/dist/rules-extra.js +59 -0
  14. package/dist/secret-patterns.js +69 -0
  15. package/dist/suppress.js +31 -19
  16. package/dist/verify.js +2 -2
  17. package/dist/write.js +71 -0
  18. package/docs/architecture/overview.html +29 -12
  19. package/docs/architecture/overview.md +2 -2
  20. package/docs/architecture/threat-model.html +28 -11
  21. package/docs/assets/charts/coverage-dark.svg +11 -0
  22. package/docs/assets/charts/coverage.svg +11 -0
  23. package/docs/assets/charts/finding-anatomy-dark.svg +20 -0
  24. package/docs/assets/charts/finding-anatomy.svg +20 -0
  25. package/docs/assets/charts/pipeline-dark.svg +13 -0
  26. package/docs/assets/charts/pipeline.svg +13 -0
  27. package/docs/assets/charts/precision-by-batch-dark.svg +12 -0
  28. package/docs/assets/charts/precision-by-batch.svg +12 -0
  29. package/docs/assets/charts/precision-by-rule-dark.svg +12 -0
  30. package/docs/assets/charts/precision-by-rule.svg +12 -0
  31. package/docs/assets/charts/sample-findings-by-severity-dark.svg +11 -0
  32. package/docs/assets/charts/sample-findings-by-severity.svg +11 -0
  33. package/docs/assets/charts/scan-time-dark.svg +11 -0
  34. package/docs/assets/charts/scan-time.svg +11 -0
  35. package/docs/assets/site.css +259 -138
  36. package/docs/assets/site.js +92 -6
  37. package/docs/community/good-first-issues.html +28 -11
  38. package/docs/compatibility/matrix.html +28 -11
  39. package/docs/compatibility/smoke-tests/index.html +28 -11
  40. package/docs/decisions/ADR-0001-deterministic-cli-plus-ide-skills.html +28 -11
  41. package/docs/guides/cheat-sheet.html +100 -0
  42. package/docs/guides/cheat-sheet.md +146 -0
  43. package/docs/guides/ci-recipes.html +170 -0
  44. package/docs/guides/ci-recipes.md +176 -0
  45. package/docs/guides/evidence-at-a-glance.html +93 -0
  46. package/docs/guides/evidence-at-a-glance.md +65 -0
  47. package/docs/guides/getting-started.html +151 -0
  48. package/docs/guides/getting-started.md +160 -0
  49. package/docs/guides/how-it-works.html +161 -0
  50. package/docs/guides/how-it-works.md +148 -0
  51. package/docs/guides/mcp-server.html +99 -0
  52. package/docs/guides/mcp-server.md +81 -0
  53. package/docs/guides/reading-a-report.html +119 -0
  54. package/docs/guides/reading-a-report.md +111 -0
  55. package/docs/guides/real-world-scenarios.html +287 -0
  56. package/docs/guides/real-world-scenarios.md +377 -0
  57. package/docs/handbook/01-executive-summary.html +30 -13
  58. package/docs/handbook/01-executive-summary.md +2 -2
  59. package/docs/handbook/02-functional-specification.html +30 -13
  60. package/docs/handbook/02-functional-specification.md +3 -3
  61. package/docs/handbook/03-technical-specification.html +31 -14
  62. package/docs/handbook/03-technical-specification.md +3 -3
  63. package/docs/handbook/04-architecture.html +29 -12
  64. package/docs/handbook/04-architecture.md +1 -1
  65. package/docs/handbook/05-user-guide.html +33 -15
  66. package/docs/handbook/05-user-guide.md +5 -4
  67. package/docs/handbook/06-cli-reference.html +52 -16
  68. package/docs/handbook/06-cli-reference.md +47 -4
  69. package/docs/handbook/07-security-privacy-legal.html +31 -12
  70. package/docs/handbook/07-security-privacy-legal.md +4 -0
  71. package/docs/handbook/08-testing-and-proof.html +32 -15
  72. package/docs/handbook/08-testing-and-proof.md +4 -4
  73. package/docs/handbook/09-compatibility-and-roadmap.html +29 -12
  74. package/docs/handbook/09-compatibility-and-roadmap.md +3 -2
  75. package/docs/handbook/10-contributor-guide.html +29 -12
  76. package/docs/handbook/10-contributor-guide.md +1 -1
  77. package/docs/handbook/11-glossary-and-faq.html +34 -13
  78. package/docs/handbook/11-glossary-and-faq.md +7 -1
  79. package/docs/handbook/12-rule-catalog.html +59 -19
  80. package/docs/handbook/12-rule-catalog.md +62 -5
  81. package/docs/handbook/13-trust-and-assurance.html +29 -12
  82. package/docs/handbook/13-trust-and-assurance.md +1 -1
  83. package/docs/handbook/14-real-world-evaluation.html +28 -11
  84. package/docs/handbook/15-supply-chain-and-release.html +28 -11
  85. package/docs/handbook/16-performance-and-quality-metrics.html +28 -11
  86. package/docs/handbook/16-performance-and-quality-metrics.md +1 -1
  87. package/docs/handbook/README.md +4 -2
  88. package/docs/handbook/index.html +31 -13
  89. package/docs/index.html +101 -51
  90. package/docs/legal/legal-review-brief.html +28 -11
  91. package/docs/legal/trademark-and-name-clearance.html +28 -11
  92. package/docs/proof/accessibility.html +28 -11
  93. package/docs/proof/benchmarks.json +9 -9
  94. package/docs/proof/benchmarks.md +4 -4
  95. package/docs/proof/test-results.txt +56 -40
  96. package/docs/rfc/0001-archsutra-v0.1.html +28 -11
  97. package/docs/sample-report/architecture-register.json +46 -0
  98. package/docs/sample-report/audit-report.html +123 -0
  99. package/docs/sample-report/audit-report.md +314 -0
  100. package/docs/sample-report/current-state.html +77 -0
  101. package/docs/sample-report/current-state.md +51 -0
  102. package/docs/sample-report/findings.json +478 -0
  103. package/docs/sample-report/findings.sarif +754 -0
  104. package/docs/sample-report/index.html +57 -0
  105. package/docs/sample-report/overview.md +11 -0
  106. package/docs/search-index.json +1 -0
  107. package/docs/sitemap.xml +39 -28
  108. package/llms.txt +11 -2
  109. package/package.json +3 -2
  110. package/schemas/findings.schema.json +4 -3
  111. package/skills/architecture-audit/SKILL.md +2 -2
  112. package/skills/architecture-audit/references/report-template.md +1 -1
  113. package/skills/architecture-verification/references/fitness-functions.md +1 -1
@@ -4,42 +4,55 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <title>Audit rule catalog | ArchSutra AI</title>
7
- <meta name="description" content="All 19 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.">
7
+ <meta name="description" content="All 30 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.">
8
8
  <link rel="canonical" href="https://shahvatsalofficial.github.io/archsutra-ai/handbook/12-rule-catalog.html">
9
9
  <meta name="color-scheme" content="light dark">
10
+ <meta name="theme-color" content="#ffffff">
10
11
  <meta property="og:type" content="article">
11
12
  <meta property="og:title" content="Audit rule catalog | ArchSutra AI">
12
- <meta property="og:description" content="All 19 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.">
13
+ <meta property="og:description" content="All 30 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.">
13
14
  <meta property="og:url" content="https://shahvatsalofficial.github.io/archsutra-ai/handbook/12-rule-catalog.html">
14
15
  <meta property="og:site_name" content="ArchSutra AI">
15
16
  <meta name="twitter:card" content="summary">
16
17
  <meta name="twitter:title" content="Audit rule catalog | ArchSutra AI">
17
- <meta name="twitter:description" content="All 19 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.">
18
+ <meta name="twitter:description" content="All 30 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.">
18
19
  <meta name="author" content="Vatsal Shah">
19
20
  <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
20
21
  <link rel="stylesheet" href="../assets/site.css">
21
- <script>try{var t=localStorage.getItem('as-theme');if(t)document.documentElement.setAttribute('data-theme',t)}catch(e){}</script>
22
- <script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Audit rule catalog","description":"All 19 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.","author":{"@type":"Person","name":"Vatsal Shah","url":"https://shahvatsal.com"},"inLanguage":"en","isPartOf":{"@type":"WebSite","name":"ArchSutra AI","url":"https://shahvatsalofficial.github.io/archsutra-ai"}}</script>
22
+ <script>try{if(localStorage.getItem('as-theme')==='dark')document.documentElement.setAttribute('data-theme','dark')}catch(e){}</script>
23
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Audit rule catalog","description":"All 30 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.","author":{"@type":"Person","name":"Vatsal Shah","url":"https://shahvatsal.com"},"inLanguage":"en","isPartOf":{"@type":"WebSite","name":"ArchSutra AI","url":"https://shahvatsalofficial.github.io/archsutra-ai"}}</script>
23
24
  </head>
24
- <body class="doc">
25
+ <body class="doc" data-root="../">
25
26
  <a class="skip" href="#main">Skip to content</a>
26
27
  <header class="topbar">
27
28
  <div class="topbar-inner">
28
- <button class="menu-btn" type="button" aria-label="Toggle navigation" aria-expanded="false" aria-controls="sidebar">Menu</button>
29
- <a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" width="26" height="26" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor" opacity=".12"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a>
30
- <nav class="top-links" aria-label="Primary"><a href="../handbook/index.html">Handbook</a><a href="../handbook/05-user-guide.html">Get started</a><a href="../handbook/08-testing-and-proof.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></nav>
31
- <button class="theme-btn" type="button" aria-label="Toggle color theme"><span class="sun" aria-hidden="true">Light</span><span class="moon" aria-hidden="true">Dark</span></button>
29
+ <a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a>
30
+ <nav class="top-links" aria-label="Primary"><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html" aria-current="true">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a></nav>
31
+ <span class="spacer"></span>
32
+ <div class="search" role="search"><label class="sr-only" for="q">Search the documentation</label><input id="q" type="search" placeholder="Search docs ( / )" autocomplete="off" aria-controls="results" aria-expanded="false"><ul id="results" class="results" role="listbox" hidden></ul></div>
33
+ <a class="gh-btn" href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12 12 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg><span>GitHub</span></a>
34
+ <button class="icon-btn theme-btn" type="button" aria-label="Switch between light and dark theme"><span class="sun"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg></span><span class="moon"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg></span></button>
35
+ <button class="icon-btn menu-btn" type="button" aria-label="Open menu" aria-expanded="false" aria-controls="drawer"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg></button>
32
36
  </div>
33
37
  </header>
38
+ <div id="drawer" class="drawer" aria-hidden="true">
39
+ <div class="drawer-scrim" data-close></div>
40
+ <div class="drawer-panel" role="dialog" aria-label="Menu">
41
+ <div class="drawer-head"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><button class="icon-btn" type="button" data-close aria-label="Close menu"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg></button></div>
42
+ <div class="primary-links"><a href="../index.html">Home</a><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></div>
43
+ <div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html" aria-current="page">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div>
44
+ </div>
45
+ </div>
34
46
  <div class="layout">
35
- <aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html" aria-current="page">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
47
+ <aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html" aria-current="page">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
36
48
  <main id="main" class="content"><article class="prose"><p class="crumbs"><a href="../index.html">ArchSutra AI</a> / Handbook</p><h1 id="audit-rule-catalog">Audit rule catalog</h1>
37
- <p class="lede">All 19 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.</p><p class="meta">Version 0.1.4 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md" rel="noopener">docs/handbook/12-rule-catalog.md</a></p>
38
- <p>Severity and confidence are the defaults emitted by the rule. IDs are stable; the <code>#NNN</code> suffix in a finding is positional per run.</p>
39
- <div class="table-wrap" tabindex="0" role="region" aria-label="Table 1: Audit rule catalog"><table><thead><tr><th scope="col">Rule</th><th scope="col">Title</th><th scope="col">Severity</th><th scope="col">Confidence</th><th scope="col">Category</th></tr></thead><tbody><tr><td>AS-SEC-001</td><td>Possible hard-coded credential</td><td>critical</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-002</td><td>Private key material committed</td><td>critical</td><td>high</td><td>security</td></tr><tr><td>AS-SEC-003</td><td>Environment file present in repository tree</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-004</td><td>Dynamic code or shell execution</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-005</td><td>SQL built by string concatenation or interpolation</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-006</td><td>TLS certificate verification disabled</td><td>high</td><td>high</td><td>security</td></tr><tr><td>AS-IAC-001</td><td>Over-permissive infrastructure configuration</td><td>medium</td><td>medium</td><td>infrastructure</td></tr><tr><td>AS-ARC-001</td><td>Circular dependency between modules</td><td>medium</td><td>high</td><td>architecture</td></tr><tr><td>AS-ARC-002</td><td>Lower layer depends on a higher layer</td><td>medium</td><td>medium</td><td>architecture</td></tr><tr><td>AS-ARC-003</td><td>Very large source files</td><td>low</td><td>medium</td><td>maintainability</td></tr><tr><td>AS-OPS-001</td><td>No CI pipeline configuration found</td><td>medium</td><td>medium</td><td>operability</td></tr><tr><td>AS-OPS-002</td><td>No test files found</td><td>medium</td><td>medium</td><td>maintainability</td></tr><tr><td>AS-OPS-003</td><td>Container runs as root</td><td>medium</td><td>high</td><td>security</td></tr><tr><td>AS-SUP-001</td><td>Dependency manifest without lockfile</td><td>medium</td><td>high</td><td>supply-chain</td></tr><tr><td>AS-SUP-002</td><td>Unpinned dependency ranges (<code>latest</code>, <code>*</code>)</td><td>medium</td><td>high</td><td>supply-chain</td></tr><tr><td>AS-SUP-003</td><td>Container base image not pinned</td><td>low</td><td>medium</td><td>supply-chain</td></tr><tr><td>AS-AI-001</td><td>LLM call co-located with dynamic code execution</td><td>high</td><td>low</td><td>ai-security</td></tr><tr><td>AS-DOC-001</td><td>No README at repository root</td><td>low</td><td>high</td><td>developer-experience</td></tr><tr><td>AS-DOC-002</td><td>No architecture decision records (only if more than 200 source files)</td><td>info</td><td>medium</td><td>governance</td></tr></tbody></table></div>
49
+ <p class="lede">All 30 audit rules: what each detects, severity, confidence, false-positive notes and how to fix.</p><p class="meta">Version 0.2.0 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md" rel="noopener">docs/handbook/12-rule-catalog.md</a></p>
50
+ <p>Severity and confidence are the defaults emitted by the rule. IDs are stable; the <code>#NNN</code> suffix counts findings within one rule. Each evidence location also carries a <code>fingerprint</code> that survives line moves.</p>
51
+ <div class="table-wrap" tabindex="0" role="region" aria-label="Table 1: Audit rule catalog"><table><thead><tr><th scope="col">Rule</th><th scope="col">Title</th><th scope="col">Severity</th><th scope="col">Confidence</th><th scope="col">Category</th></tr></thead><tbody><tr><td>AS-SEC-001</td><td>Possible hard-coded credential</td><td>critical</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-002</td><td>Private key material committed</td><td>critical</td><td>high</td><td>security</td></tr><tr><td>AS-SEC-003</td><td>Environment file present in repository tree</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-004</td><td>Dynamic code or shell execution</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-005</td><td>SQL built by string concatenation or interpolation</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-006</td><td>TLS certificate verification disabled</td><td>high</td><td>high</td><td>security</td></tr><tr><td>AS-SEC-007</td><td>Unsafe deserialization (Python)</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-008</td><td>Weak hash algorithm (MD5 or SHA-1)</td><td>medium</td><td>low</td><td>security</td></tr><tr><td>AS-SEC-009</td><td>Non-cryptographic randomness for a secret value</td><td>medium</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-010</td><td>HTML built from a variable</td><td>medium</td><td>low</td><td>security</td></tr><tr><td>AS-SEC-011</td><td>Any origin allowed with credentials</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-012</td><td>Token signature check disabled</td><td>high</td><td>high</td><td>security</td></tr><tr><td>AS-SEC-013</td><td>File path taken from the request</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-014</td><td>Outbound URL taken from the request</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-015</td><td>XML external entities resolved</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-016</td><td>OS command built from input</td><td>high</td><td>medium</td><td>security</td></tr><tr><td>AS-SEC-017</td><td>Weak cipher mode</td><td>medium</td><td>medium</td><td>security</td></tr><tr><td>AS-IAC-001</td><td>Over-permissive infrastructure configuration</td><td>medium</td><td>medium</td><td>infrastructure</td></tr><tr><td>AS-ARC-001</td><td>Circular dependency between modules</td><td>medium</td><td>high</td><td>architecture</td></tr><tr><td>AS-ARC-002</td><td>Lower layer depends on a higher layer</td><td>medium</td><td>medium</td><td>architecture</td></tr><tr><td>AS-ARC-003</td><td>Very large source files</td><td>low</td><td>medium</td><td>maintainability</td></tr><tr><td>AS-OPS-001</td><td>No CI pipeline configuration found</td><td>medium</td><td>medium</td><td>operability</td></tr><tr><td>AS-OPS-002</td><td>No test files found</td><td>medium</td><td>medium</td><td>maintainability</td></tr><tr><td>AS-OPS-003</td><td>Container runs as root</td><td>medium</td><td>high</td><td>security</td></tr><tr><td>AS-SUP-001</td><td>Dependency manifest without lockfile</td><td>medium</td><td>high</td><td>supply-chain</td></tr><tr><td>AS-SUP-002</td><td>Unpinned dependency ranges (<code>latest</code>, <code>*</code>)</td><td>medium</td><td>high</td><td>supply-chain</td></tr><tr><td>AS-SUP-003</td><td>Container base image not pinned</td><td>low</td><td>medium</td><td>supply-chain</td></tr><tr><td>AS-AI-001</td><td>LLM call co-located with dynamic code execution</td><td>info</td><td>low</td><td>ai-security</td></tr><tr><td>AS-DOC-001</td><td>No README at repository root</td><td>low</td><td>high</td><td>developer-experience</td></tr><tr><td>AS-DOC-002</td><td>No architecture decision records (only if more than 200 source files)</td><td>info</td><td>medium</td><td>governance</td></tr></tbody></table></div>
40
52
  <h2 id="details">Details<a class="anchor" href="#details" aria-label="Link to this section">#</a></h2>
41
53
  <h3 id="as-sec-001-possible-hard-coded-credential">AS-SEC-001 Possible hard-coded credential<a class="anchor" href="#as-sec-001-possible-hard-coded-credential" aria-label="Link to this section">#</a></h3>
42
- <ul><li><strong>Detects:</strong> AWS access key IDs, GitHub tokens, <code>sk-</code> style keys, Slack tokens, Google API keys, and quoted <code>password|secret|api_key|token|access_key</code> assignments of 8+ characters.</li><li><strong>Skips:</strong> test and fixture paths, doc files (<code>.md</code>, <code>.txt</code>, <code>.rst</code>, <code>.adoc</code>, <code>.html</code>), comments and docstrings, vendored or minified files, dummy values (<code>password</code>, <code>secret</code>, <code>changeme</code>, ...), values with interpolation, dotted identifiers, and lines that mention example/placeholder/changeme/your_/xxxx or read <code>process.env</code>, <code>os.environ</code>, <code>getenv</code>.</li><li><strong>Output:</strong> kind and a redacted excerpt. The value is never printed.</li><li><strong>Fix:</strong> revoke and rotate first; then move to a secret manager or environment; purge history only after rotation.</li><li><strong>Limits:</strong> misses unusual formats; may flag test-like values outside test paths.</li></ul>
54
+ <ul><li><strong>Detects:</strong> more than 60 provider formats (cloud, source hosting, payments, messaging, package registries, AI and SaaS tokens, JWTs), database connection strings with a password, filled-in <code>.npmrc</code>, <code>.pypirc</code>, <code>.netrc</code> and <code>.git-credentials</code> files, and quoted <code>password|secret|api_key|token|access_key</code> assignments of 8+ characters. With <code>--history</code>, provider formats and connection strings in every line ever added to local git. The full list is in <code>src/secret-patterns.ts</code>.</li><li><strong>Where:</strong> provider formats and connection strings are reported in code, comments, tests and docs. The generic assignment guess skips tests and docs. Vendored or minified files are skipped. A value that is itself a placeholder (contains example, changeme, your_, repeated characters) is ignored; the rest of the line does not matter.</li><li><strong>Output:</strong> kind and a redacted excerpt. The value is never printed.</li><li><strong>Fix:</strong> revoke and rotate first; then move to a secret manager or environment; purge history only after rotation.</li><li><strong>Limits:</strong> misses unusual formats; may flag test-like values outside test paths.</li></ul>
55
+ <ul><li><strong>Confidence</strong> drops to <code>low</code> when every hit is in a test, a document or a comment.</li></ul>
43
56
  <h3 id="as-sec-002-private-key-material-committed">AS-SEC-002 Private key material committed<a class="anchor" href="#as-sec-002-private-key-material-committed" aria-label="Link to this section">#</a></h3>
44
57
  <ul><li><strong>Detects:</strong> a <code>BEGIN ... PRIVATE KEY</code> header followed by base64 key material (next line, or on the same line). Regex literals and docs that merely mention the header do not trigger.</li><li><strong>Fix:</strong> treat as compromised; rotate; remove.</li></ul>
45
58
  <h3 id="as-sec-003-environment-file-in-tree">AS-SEC-003 Environment file in tree<a class="anchor" href="#as-sec-003-environment-file-in-tree" aria-label="Link to this section">#</a></h3>
@@ -48,6 +61,28 @@
48
61
  <ul><li><strong>Detects:</strong> <code>eval(</code> and <code>new Function(</code> (not when quoted in backticks), <code>child_process</code>-style <code>exec</code>/<code>execSync</code> with interpolated or concatenated strings (only in files that use <code>child_process</code>, <code>shelljs</code> or <code>execa</code>), <code>os.system(</code>, Python <code>subprocess</code> with <code>shell=True</code>.</li><li><strong>Skips:</strong> tests, docs, non-code files.</li><li><strong>Fix:</strong> argument arrays, parsers, allowlists.</li><li><strong>Limits:</strong> cannot prove tainted input.</li></ul>
49
62
  <h3 id="as-sec-005-sql-string-building">AS-SEC-005 SQL string building<a class="anchor" href="#as-sec-005-sql-string-building" aria-label="Link to this section">#</a></h3>
50
63
  <ul><li><strong>Detects:</strong> <code>query|execute|raw|prepare(</code> called with a template literal containing <code>${</code> or string concatenation and the line contains SQL words (select/insert/update/delete/create/drop/alter plus from/into/set/table/where/values); and uppercase SQL statements (<code>SELECT .. FROM</code>, <code>INSERT INTO</code>, <code>UPDATE .. SET</code>, <code>DELETE FROM</code>) combined with interpolation or concatenation on the same line.</li><li><strong>Fix:</strong> bind parameters.</li><li><strong>Limits:</strong> line-based; multi-line queries can be missed; interpolated identifiers that are already quoted or escaped are still reported (valid pattern, often not actionable).</li></ul>
64
+ <h3 id="as-sec-007-unsafe-deserialization">AS-SEC-007 Unsafe deserialization<a class="anchor" href="#as-sec-007-unsafe-deserialization" aria-label="Link to this section">#</a></h3>
65
+ <ul><li><strong>Detects:</strong> Python <code>pickle</code>, <code>marshal</code>, <code>dill</code> loads, <code>yaml.unsafe_load</code>, <code>yaml.full_load</code>, and <code>yaml.load</code> without a Safe loader. CWE-502.</li><li><strong>False positives:</strong> trusted local data.</li></ul>
66
+ <h3 id="as-sec-008-weak-hash">AS-SEC-008 Weak hash<a class="anchor" href="#as-sec-008-weak-hash" aria-label="Link to this section">#</a></h3>
67
+ <ul><li><strong>Detects:</strong> <code>hashlib.md5</code>/<code>sha1</code> (not when <code>usedforsecurity=False</code>) and Node <code>createHash('md5'|'sha1')</code>. CWE-327.</li><li><strong>False positives:</strong> checksums and cache keys.</li></ul>
68
+ <h3 id="as-sec-009-non-cryptographic-randomness-for-a-secret-value">AS-SEC-009 Non-cryptographic randomness for a secret value<a class="anchor" href="#as-sec-009-non-cryptographic-randomness-for-a-secret-value" aria-label="Link to this section">#</a></h3>
69
+ <ul><li><strong>Detects:</strong> <code>Math.random()</code> or Python <code>random</code> on a line naming a token, secret, password, OTP, nonce, session, API key or salt. CWE-338.</li><li><strong>False positives:</strong> a jitter value on such a line.</li></ul>
70
+ <h3 id="as-sec-010-html-built-from-a-variable">AS-SEC-010 HTML built from a variable<a class="anchor" href="#as-sec-010-html-built-from-a-variable" aria-label="Link to this section">#</a></h3>
71
+ <ul><li><strong>Detects:</strong> <code>innerHTML</code> / <code>outerHTML</code> assigned from a non-literal, <code>dangerouslySetInnerHTML</code>, <code>document.write</code> of a variable. Lines that mention sanitise or escape are skipped. CWE-79.</li><li><strong>False positives:</strong> content that is already safe.</li></ul>
72
+ <h3 id="as-sec-011-any-origin-allowed-with-credentials">AS-SEC-011 Any origin allowed with credentials<a class="anchor" href="#as-sec-011-any-origin-allowed-with-credentials" aria-label="Link to this section">#</a></h3>
73
+ <ul><li><strong>Detects:</strong> Wildcard or reflected CORS origin with credentials enabled within five lines. CWE-942.</li><li><strong>False positives:</strong> settings for two different routes that sit close together.</li></ul>
74
+ <h3 id="as-sec-012-token-signature-check-disabled">AS-SEC-012 Token signature check disabled<a class="anchor" href="#as-sec-012-token-signature-check-disabled" aria-label="Link to this section">#</a></h3>
75
+ <ul><li><strong>Detects:</strong> JWT algorithm <code>none</code>, or <code>jwt.decode</code> with verification off. CWE-347.</li><li><strong>False positives:</strong> text that only mentions the setting.</li></ul>
76
+ <h3 id="as-sec-013-file-path-taken-from-the-request">AS-SEC-013 File path taken from the request<a class="anchor" href="#as-sec-013-file-path-taken-from-the-request" aria-label="Link to this section">#</a></h3>
77
+ <ul><li><strong>Detects:</strong> A file read or send call whose argument uses request parameters, on one line. CWE-22.</li><li><strong>False positives:</strong> validated input.</li></ul>
78
+ <h3 id="as-sec-014-outbound-url-taken-from-the-request">AS-SEC-014 Outbound URL taken from the request<a class="anchor" href="#as-sec-014-outbound-url-taken-from-the-request" aria-label="Link to this section">#</a></h3>
79
+ <ul><li><strong>Detects:</strong> <code>fetch</code>, <code>axios</code>, <code>requests</code>, <code>urlopen</code> or <code>http.get</code> called with request parameters. CWE-918.</li><li><strong>False positives:</strong> allowlisted input.</li></ul>
80
+ <h3 id="as-sec-015-xml-external-entities-resolved">AS-SEC-015 XML external entities resolved<a class="anchor" href="#as-sec-015-xml-external-entities-resolved" aria-label="Link to this section">#</a></h3>
81
+ <ul><li><strong>Detects:</strong> Parser options that enable external entities. CWE-611.</li><li><strong>False positives:</strong> trusted documents.</li></ul>
82
+ <h3 id="as-sec-016-os-command-built-from-input">AS-SEC-016 OS command built from input<a class="anchor" href="#as-sec-016-os-command-built-from-input" aria-label="Link to this section">#</a></h3>
83
+ <ul><li><strong>Detects:</strong> PHP command functions with superglobals, Java <code>exec</code> with concatenation, Go shell <code>-c</code> with a variable, Ruby interpolated request values. CWE-78.</li><li><strong>False positives:</strong> validated input.</li></ul>
84
+ <h3 id="as-sec-017-weak-cipher-mode">AS-SEC-017 Weak cipher mode<a class="anchor" href="#as-sec-017-weak-cipher-mode" aria-label="Link to this section">#</a></h3>
85
+ <ul><li><strong>Detects:</strong> AES ECB, Java default <code>AES</code>, Node <code>createCipher</code>. CWE-327.</li><li><strong>False positives:</strong> single-block use.</li></ul>
51
86
  <h3 id="as-sec-006-tls-verification-disabled">AS-SEC-006 TLS verification disabled<a class="anchor" href="#as-sec-006-tls-verification-disabled" aria-label="Link to this section">#</a></h3>
52
87
  <ul><li><strong>Detects:</strong> <code>rejectUnauthorized: false</code>, <code>verify=False</code>, <code>InsecureSkipVerify: true</code>, <code>NODE_TLS_REJECT_UNAUTHORIZED=0</code> in code files (lines mentioning jwt, decode or signature are excluded: they disable signature checks, not TLS).</li><li><strong>Limits:</strong> may be a dev-only profile.</li></ul>
53
88
  <h3 id="as-iac-001-over-permissive-infrastructure">AS-IAC-001 Over-permissive infrastructure<a class="anchor" href="#as-iac-001-over-permissive-infrastructure" aria-label="Link to this section">#</a></h3>
@@ -75,13 +110,18 @@
75
110
  <h3 id="as-doc-001-as-doc-002-documentation-gaps">AS-DOC-001 / AS-DOC-002 Documentation gaps<a class="anchor" href="#as-doc-001-as-doc-002-documentation-gaps" aria-label="Link to this section">#</a></h3>
76
111
  <ul><li><strong>Detects:</strong> missing README; missing ADR directory in large codebases.</li></ul>
77
112
  <h2 id="what-the-audit-does-not-do">What the audit does not do<a class="anchor" href="#what-the-audit-does-not-do" aria-label="Link to this section">#</a></h2>
78
- <p>It does not execute code, query live systems, scan networks, inspect cloud accounts, read git history, or assess runtime behavior. Use the skills and your own judgment to cover those areas.</p></article></main>
79
- <aside class="rail"><nav class="toc" aria-label="On this page"><p class="nav-title">On this page</p><ul><li class="l2"><a href="#details">Details</a></li><li class="l3"><a href="#as-sec-001-possible-hard-coded-credential">AS-SEC-001 Possible hard-coded credential</a></li><li class="l3"><a href="#as-sec-002-private-key-material-committed">AS-SEC-002 Private key material committed</a></li><li class="l3"><a href="#as-sec-003-environment-file-in-tree">AS-SEC-003 Environment file in tree</a></li><li class="l3"><a href="#as-sec-004-dynamic-code-or-shell-execution">AS-SEC-004 Dynamic code or shell execution</a></li><li class="l3"><a href="#as-sec-005-sql-string-building">AS-SEC-005 SQL string building</a></li><li class="l3"><a href="#as-sec-006-tls-verification-disabled">AS-SEC-006 TLS verification disabled</a></li><li class="l3"><a href="#as-iac-001-over-permissive-infrastructure">AS-IAC-001 Over-permissive infrastructure</a></li><li class="l3"><a href="#as-arc-001-circular-dependency">AS-ARC-001 Circular dependency</a></li><li class="l3"><a href="#as-arc-002-layer-inversion">AS-ARC-002 Layer inversion</a></li><li class="l3"><a href="#as-arc-003-very-large-files">AS-ARC-003 Very large files</a></li><li class="l3"><a href="#as-ops-001-no-ci">AS-OPS-001 No CI</a></li><li class="l3"><a href="#as-ops-002-no-tests">AS-OPS-002 No tests</a></li><li class="l3"><a href="#as-ops-003-container-runs-as-root">AS-OPS-003 Container runs as root</a></li><li class="l3"><a href="#as-sup-001-missing-lockfile">AS-SUP-001 Missing lockfile</a></li><li class="l3"><a href="#as-sup-002-unpinned-ranges">AS-SUP-002 Unpinned ranges</a></li><li class="l3"><a href="#as-sup-003-unpinned-base-image">AS-SUP-003 Unpinned base image</a></li><li class="l3"><a href="#as-ai-001-llm-plus-execution-sink">AS-AI-001 LLM plus execution sink</a></li><li class="l3"><a href="#as-doc-001-as-doc-002-documentation-gaps">AS-DOC-001 / AS-DOC-002 Documentation gaps</a></li><li class="l2"><a href="#what-the-audit-does-not-do">What the audit does not do</a></li></ul></nav></aside>
113
+ <p>It does not execute code, query live systems, scan networks, inspect cloud accounts, read git history, or assess runtime behavior. Use the skills and your own judgment to cover those areas.</p></article><nav class="pn" aria-label="Previous and next page"><a class="prev" href="11-glossary-and-faq.html"><small>Previous</small><span>Glossary and FAQ</span></a><a class="next" href="13-trust-and-assurance.html"><small>Next</small><span>Trust and assurance</span></a></nav><p class="edit"><a href="https://github.com/shahvatsalofficial/archsutra-ai/edit/main/docs/handbook/12-rule-catalog.md" rel="noopener">Edit this page on GitHub</a></p></main>
114
+ <aside class="rail"><nav class="toc" aria-label="On this page"><p class="nav-title">On this page</p><ul><li class="l2"><a href="#details">Details</a></li><li class="l3"><a href="#as-sec-001-possible-hard-coded-credential">AS-SEC-001 Possible hard-coded credential</a></li><li class="l3"><a href="#as-sec-002-private-key-material-committed">AS-SEC-002 Private key material committed</a></li><li class="l3"><a href="#as-sec-003-environment-file-in-tree">AS-SEC-003 Environment file in tree</a></li><li class="l3"><a href="#as-sec-004-dynamic-code-or-shell-execution">AS-SEC-004 Dynamic code or shell execution</a></li><li class="l3"><a href="#as-sec-005-sql-string-building">AS-SEC-005 SQL string building</a></li><li class="l3"><a href="#as-sec-007-unsafe-deserialization">AS-SEC-007 Unsafe deserialization</a></li><li class="l3"><a href="#as-sec-008-weak-hash">AS-SEC-008 Weak hash</a></li><li class="l3"><a href="#as-sec-009-non-cryptographic-randomness-for-a-secret-value">AS-SEC-009 Non-cryptographic randomness for a secret value</a></li><li class="l3"><a href="#as-sec-010-html-built-from-a-variable">AS-SEC-010 HTML built from a variable</a></li><li class="l3"><a href="#as-sec-011-any-origin-allowed-with-credentials">AS-SEC-011 Any origin allowed with credentials</a></li><li class="l3"><a href="#as-sec-012-token-signature-check-disabled">AS-SEC-012 Token signature check disabled</a></li><li class="l3"><a href="#as-sec-013-file-path-taken-from-the-request">AS-SEC-013 File path taken from the request</a></li><li class="l3"><a href="#as-sec-014-outbound-url-taken-from-the-request">AS-SEC-014 Outbound URL taken from the request</a></li><li class="l3"><a href="#as-sec-015-xml-external-entities-resolved">AS-SEC-015 XML external entities resolved</a></li><li class="l3"><a href="#as-sec-016-os-command-built-from-input">AS-SEC-016 OS command built from input</a></li><li class="l3"><a href="#as-sec-017-weak-cipher-mode">AS-SEC-017 Weak cipher mode</a></li><li class="l3"><a href="#as-sec-006-tls-verification-disabled">AS-SEC-006 TLS verification disabled</a></li><li class="l3"><a href="#as-iac-001-over-permissive-infrastructure">AS-IAC-001 Over-permissive infrastructure</a></li><li class="l3"><a href="#as-arc-001-circular-dependency">AS-ARC-001 Circular dependency</a></li><li class="l3"><a href="#as-arc-002-layer-inversion">AS-ARC-002 Layer inversion</a></li><li class="l3"><a href="#as-arc-003-very-large-files">AS-ARC-003 Very large files</a></li><li class="l3"><a href="#as-ops-001-no-ci">AS-OPS-001 No CI</a></li><li class="l3"><a href="#as-ops-002-no-tests">AS-OPS-002 No tests</a></li><li class="l3"><a href="#as-ops-003-container-runs-as-root">AS-OPS-003 Container runs as root</a></li><li class="l3"><a href="#as-sup-001-missing-lockfile">AS-SUP-001 Missing lockfile</a></li><li class="l3"><a href="#as-sup-002-unpinned-ranges">AS-SUP-002 Unpinned ranges</a></li><li class="l3"><a href="#as-sup-003-unpinned-base-image">AS-SUP-003 Unpinned base image</a></li><li class="l3"><a href="#as-ai-001-llm-plus-execution-sink">AS-AI-001 LLM plus execution sink</a></li><li class="l3"><a href="#as-doc-001-as-doc-002-documentation-gaps">AS-DOC-001 / AS-DOC-002 Documentation gaps</a></li><li class="l2"><a href="#what-the-audit-does-not-do">What the audit does not do</a></li></ul></nav></aside>
80
115
  </div>
81
116
  <footer class="footer">
82
117
  <div class="footer-inner">
83
- <p><strong>ArchSutra AI</strong> v0.1.4. Design. Audit. Evolve. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Licensed under <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/LICENSE" rel="noopener">Apache-2.0</a>.</p>
84
- <p class="fine">Review aid only. Not a certification, compliance attestation, security guarantee or legal advice. Not affiliated with Anthropic, OpenAI, Cursor, GitHub or Google; product names belong to their owners. <a href="../handbook/07-security-privacy-legal.html">Legal details</a>.</p>
118
+ <div class="footer-grid">
119
+ <div class="about-col"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><p class="about">Design. Audit. Evolve. An open-source, evidence-first software architecture agent. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Apache-2.0.</p></div>
120
+ <div><h4>Learn</h4><ul><li><a href="../guides/getting-started.html">Get started</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li></ul></div>
121
+ <div><h4>Trust</h4><ul><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li><li><a href="../handbook/13-trust-and-assurance.html">Honesty register</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security and legal</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain</a></li></ul></div>
122
+ <div><h4>Project</h4><ul><li><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></li><li><a href="https://www.npmjs.com/package/archsutra-ai" rel="noopener">npm</a></li><li><a href="../handbook/10-contributor-guide.html">Contribute</a></li><li><a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/CHANGELOG.md" rel="noopener">Changelog</a></li></ul></div>
123
+ </div>
124
+ <p class="fine">v0.2.0. Review aid only. Not a certification, compliance attestation, security guarantee or legal advice. Not affiliated with Anthropic, OpenAI, Cursor, GitHub or Google; product names belong to their owners. <a href="../handbook/07-security-privacy-legal.html">Legal details</a>.</p>
85
125
  </div>
86
126
  </footer>
87
127
  <script src="../assets/site.js" type="module"></script>
@@ -1,8 +1,8 @@
1
1
  # Audit rule catalog
2
2
 
3
- <!-- summary: All 19 audit rules: what each detects, severity, confidence, false-positive notes and how to fix. -->
3
+ <!-- summary: All 30 audit rules: what each detects, severity, confidence, false-positive notes and how to fix. -->
4
4
 
5
- Severity and confidence are the defaults emitted by the rule. IDs are stable; the `#NNN` suffix in a finding is positional per run.
5
+ Severity and confidence are the defaults emitted by the rule. IDs are stable; the `#NNN` suffix counts findings within one rule. Each evidence location also carries a `fingerprint` that survives line moves.
6
6
 
7
7
  | Rule | Title | Severity | Confidence | Category |
8
8
  |---|---|---|---|---|
@@ -12,6 +12,17 @@ Severity and confidence are the defaults emitted by the rule. IDs are stable; th
12
12
  | AS-SEC-004 | Dynamic code or shell execution | high | medium | security |
13
13
  | AS-SEC-005 | SQL built by string concatenation or interpolation | high | medium | security |
14
14
  | AS-SEC-006 | TLS certificate verification disabled | high | high | security |
15
+ | AS-SEC-007 | Unsafe deserialization (Python) | high | medium | security |
16
+ | AS-SEC-008 | Weak hash algorithm (MD5 or SHA-1) | medium | low | security |
17
+ | AS-SEC-009 | Non-cryptographic randomness for a secret value | medium | medium | security |
18
+ | AS-SEC-010 | HTML built from a variable | medium | low | security |
19
+ | AS-SEC-011 | Any origin allowed with credentials | high | medium | security |
20
+ | AS-SEC-012 | Token signature check disabled | high | high | security |
21
+ | AS-SEC-013 | File path taken from the request | high | medium | security |
22
+ | AS-SEC-014 | Outbound URL taken from the request | high | medium | security |
23
+ | AS-SEC-015 | XML external entities resolved | high | medium | security |
24
+ | AS-SEC-016 | OS command built from input | high | medium | security |
25
+ | AS-SEC-017 | Weak cipher mode | medium | medium | security |
15
26
  | AS-IAC-001 | Over-permissive infrastructure configuration | medium | medium | infrastructure |
16
27
  | AS-ARC-001 | Circular dependency between modules | medium | high | architecture |
17
28
  | AS-ARC-002 | Lower layer depends on a higher layer | medium | medium | architecture |
@@ -22,19 +33,21 @@ Severity and confidence are the defaults emitted by the rule. IDs are stable; th
22
33
  | AS-SUP-001 | Dependency manifest without lockfile | medium | high | supply-chain |
23
34
  | AS-SUP-002 | Unpinned dependency ranges (`latest`, `*`) | medium | high | supply-chain |
24
35
  | AS-SUP-003 | Container base image not pinned | low | medium | supply-chain |
25
- | AS-AI-001 | LLM call co-located with dynamic code execution | high | low | ai-security |
36
+ | AS-AI-001 | LLM call co-located with dynamic code execution | info | low | ai-security |
26
37
  | AS-DOC-001 | No README at repository root | low | high | developer-experience |
27
38
  | AS-DOC-002 | No architecture decision records (only if more than 200 source files) | info | medium | governance |
28
39
 
29
40
  ## Details
30
41
 
31
42
  ### AS-SEC-001 Possible hard-coded credential
32
- - **Detects:** AWS access key IDs, GitHub tokens, `sk-` style keys, Slack tokens, Google API keys, and quoted `password|secret|api_key|token|access_key` assignments of 8+ characters.
33
- - **Skips:** test and fixture paths, doc files (`.md`, `.txt`, `.rst`, `.adoc`, `.html`), comments and docstrings, vendored or minified files, dummy values (`password`, `secret`, `changeme`, ...), values with interpolation, dotted identifiers, and lines that mention example/placeholder/changeme/your_/xxxx or read `process.env`, `os.environ`, `getenv`.
43
+ - **Detects:** more than 60 provider formats (cloud, source hosting, payments, messaging, package registries, AI and SaaS tokens, JWTs), database connection strings with a password, filled-in `.npmrc`, `.pypirc`, `.netrc` and `.git-credentials` files, and quoted `password|secret|api_key|token|access_key` assignments of 8+ characters. With `--history`, provider formats and connection strings in every line ever added to local git. The full list is in `src/secret-patterns.ts`.
44
+ - **Where:** provider formats and connection strings are reported in code, comments, tests and docs. The generic assignment guess skips tests and docs. Vendored or minified files are skipped. A value that is itself a placeholder (contains example, changeme, your_, repeated characters) is ignored; the rest of the line does not matter.
34
45
  - **Output:** kind and a redacted excerpt. The value is never printed.
35
46
  - **Fix:** revoke and rotate first; then move to a secret manager or environment; purge history only after rotation.
36
47
  - **Limits:** misses unusual formats; may flag test-like values outside test paths.
37
48
 
49
+ - **Confidence** drops to `low` when every hit is in a test, a document or a comment.
50
+
38
51
  ### AS-SEC-002 Private key material committed
39
52
  - **Detects:** a `BEGIN ... PRIVATE KEY` header followed by base64 key material (next line, or on the same line). Regex literals and docs that merely mention the header do not trigger.
40
53
  - **Fix:** treat as compromised; rotate; remove.
@@ -54,6 +67,50 @@ Severity and confidence are the defaults emitted by the rule. IDs are stable; th
54
67
  - **Fix:** bind parameters.
55
68
  - **Limits:** line-based; multi-line queries can be missed; interpolated identifiers that are already quoted or escaped are still reported (valid pattern, often not actionable).
56
69
 
70
+ ### AS-SEC-007 Unsafe deserialization
71
+ - **Detects:** Python `pickle`, `marshal`, `dill` loads, `yaml.unsafe_load`, `yaml.full_load`, and `yaml.load` without a Safe loader. CWE-502.
72
+ - **False positives:** trusted local data.
73
+
74
+ ### AS-SEC-008 Weak hash
75
+ - **Detects:** `hashlib.md5`/`sha1` (not when `usedforsecurity=False`) and Node `createHash('md5'|'sha1')`. CWE-327.
76
+ - **False positives:** checksums and cache keys.
77
+
78
+ ### AS-SEC-009 Non-cryptographic randomness for a secret value
79
+ - **Detects:** `Math.random()` or Python `random` on a line naming a token, secret, password, OTP, nonce, session, API key or salt. CWE-338.
80
+ - **False positives:** a jitter value on such a line.
81
+
82
+ ### AS-SEC-010 HTML built from a variable
83
+ - **Detects:** `innerHTML` / `outerHTML` assigned from a non-literal, `dangerouslySetInnerHTML`, `document.write` of a variable. Lines that mention sanitise or escape are skipped. CWE-79.
84
+ - **False positives:** content that is already safe.
85
+
86
+ ### AS-SEC-011 Any origin allowed with credentials
87
+ - **Detects:** Wildcard or reflected CORS origin with credentials enabled within five lines. CWE-942.
88
+ - **False positives:** settings for two different routes that sit close together.
89
+
90
+ ### AS-SEC-012 Token signature check disabled
91
+ - **Detects:** JWT algorithm `none`, or `jwt.decode` with verification off. CWE-347.
92
+ - **False positives:** text that only mentions the setting.
93
+
94
+ ### AS-SEC-013 File path taken from the request
95
+ - **Detects:** A file read or send call whose argument uses request parameters, on one line. CWE-22.
96
+ - **False positives:** validated input.
97
+
98
+ ### AS-SEC-014 Outbound URL taken from the request
99
+ - **Detects:** `fetch`, `axios`, `requests`, `urlopen` or `http.get` called with request parameters. CWE-918.
100
+ - **False positives:** allowlisted input.
101
+
102
+ ### AS-SEC-015 XML external entities resolved
103
+ - **Detects:** Parser options that enable external entities. CWE-611.
104
+ - **False positives:** trusted documents.
105
+
106
+ ### AS-SEC-016 OS command built from input
107
+ - **Detects:** PHP command functions with superglobals, Java `exec` with concatenation, Go shell `-c` with a variable, Ruby interpolated request values. CWE-78.
108
+ - **False positives:** validated input.
109
+
110
+ ### AS-SEC-017 Weak cipher mode
111
+ - **Detects:** AES ECB, Java default `AES`, Node `createCipher`. CWE-327.
112
+ - **False positives:** single-block use.
113
+
57
114
  ### AS-SEC-006 TLS verification disabled
58
115
  - **Detects:** `rejectUnauthorized: false`, `verify=False`, `InsecureSkipVerify: true`, `NODE_TLS_REJECT_UNAUTHORIZED=0` in code files (lines mentioning jwt, decode or signature are excluded: they disable signature checks, not TLS).
59
116
  - **Limits:** may be a dev-only profile.
@@ -7,6 +7,7 @@
7
7
  <meta name="description" content="Every question a skeptical reader should ask, the evidence we have, and what is still open, with no rounding up.">
8
8
  <link rel="canonical" href="https://shahvatsalofficial.github.io/archsutra-ai/handbook/13-trust-and-assurance.html">
9
9
  <meta name="color-scheme" content="light dark">
10
+ <meta name="theme-color" content="#ffffff">
10
11
  <meta property="og:type" content="article">
11
12
  <meta property="og:title" content="Trust and assurance | ArchSutra AI">
12
13
  <meta property="og:description" content="Every question a skeptical reader should ask, the evidence we have, and what is still open, with no rounding up.">
@@ -18,37 +19,53 @@
18
19
  <meta name="author" content="Vatsal Shah">
19
20
  <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
20
21
  <link rel="stylesheet" href="../assets/site.css">
21
- <script>try{var t=localStorage.getItem('as-theme');if(t)document.documentElement.setAttribute('data-theme',t)}catch(e){}</script>
22
+ <script>try{if(localStorage.getItem('as-theme')==='dark')document.documentElement.setAttribute('data-theme','dark')}catch(e){}</script>
22
23
  <script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Trust and assurance","description":"Every question a skeptical reader should ask, the evidence we have, and what is still open, with no rounding up.","author":{"@type":"Person","name":"Vatsal Shah","url":"https://shahvatsal.com"},"inLanguage":"en","isPartOf":{"@type":"WebSite","name":"ArchSutra AI","url":"https://shahvatsalofficial.github.io/archsutra-ai"}}</script>
23
24
  </head>
24
- <body class="doc">
25
+ <body class="doc" data-root="../">
25
26
  <a class="skip" href="#main">Skip to content</a>
26
27
  <header class="topbar">
27
28
  <div class="topbar-inner">
28
- <button class="menu-btn" type="button" aria-label="Toggle navigation" aria-expanded="false" aria-controls="sidebar">Menu</button>
29
- <a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" width="26" height="26" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor" opacity=".12"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a>
30
- <nav class="top-links" aria-label="Primary"><a href="../handbook/index.html">Handbook</a><a href="../handbook/05-user-guide.html">Get started</a><a href="../handbook/08-testing-and-proof.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></nav>
31
- <button class="theme-btn" type="button" aria-label="Toggle color theme"><span class="sun" aria-hidden="true">Light</span><span class="moon" aria-hidden="true">Dark</span></button>
29
+ <a class="brand" href="../index.html" aria-label="ArchSutra AI home"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a>
30
+ <nav class="top-links" aria-label="Primary"><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html" aria-current="true">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a></nav>
31
+ <span class="spacer"></span>
32
+ <div class="search" role="search"><label class="sr-only" for="q">Search the documentation</label><input id="q" type="search" placeholder="Search docs ( / )" autocomplete="off" aria-controls="results" aria-expanded="false"><ul id="results" class="results" role="listbox" hidden></ul></div>
33
+ <a class="gh-btn" href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12 12 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg><span>GitHub</span></a>
34
+ <button class="icon-btn theme-btn" type="button" aria-label="Switch between light and dark theme"><span class="sun"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg></span><span class="moon"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg></span></button>
35
+ <button class="icon-btn menu-btn" type="button" aria-label="Open menu" aria-expanded="false" aria-controls="drawer"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg></button>
32
36
  </div>
33
37
  </header>
38
+ <div id="drawer" class="drawer" aria-hidden="true">
39
+ <div class="drawer-scrim" data-close></div>
40
+ <div class="drawer-panel" role="dialog" aria-label="Menu">
41
+ <div class="drawer-head"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><button class="icon-btn" type="button" data-close aria-label="Close menu"><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg></button></div>
42
+ <div class="primary-links"><a href="../index.html">Home</a><a href="../guides/getting-started.html">Get started</a><a href="../guides/real-world-scenarios.html">Scenarios</a><a href="../handbook/index.html">Handbook</a><a href="../guides/evidence-at-a-glance.html">Proof</a><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></div>
43
+ <div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html" aria-current="page">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div>
44
+ </div>
45
+ </div>
34
46
  <div class="layout">
35
- <aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html" aria-current="page">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
47
+ <aside id="sidebar" class="sidebar" aria-label="Documentation"><div class="nav-group"><p class="nav-title">Start here</p><ul><li><a href="../guides/getting-started.html">Get started in 5 minutes</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works, in pictures</a></li><li><a href="../guides/reading-a-report.html">Reading and triaging a report</a></li><li><a href="../guides/ci-recipes.html">CI recipes</a></li><li><a href="../guides/mcp-server.html">Use ArchSutra as an MCP server</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li></ul></div><div class="nav-group"><p class="nav-title">Handbook</p><ul><li><a href="../handbook/index.html">Overview</a></li><li><a href="../handbook/01-executive-summary.html">Executive summary</a></li><li><a href="../handbook/02-functional-specification.html">Functional specification</a></li><li><a href="../handbook/03-technical-specification.html">Technical specification</a></li><li><a href="../handbook/04-architecture.html">Architecture</a></li><li><a href="../handbook/05-user-guide.html">User guide</a></li><li><a href="../handbook/06-cli-reference.html">CLI reference</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security, privacy and legal</a></li><li><a href="../handbook/08-testing-and-proof.html">Testing and proof</a></li><li><a href="../handbook/09-compatibility-and-roadmap.html">Compatibility and roadmap</a></li><li><a href="../handbook/10-contributor-guide.html">Contributor guide</a></li><li><a href="../handbook/11-glossary-and-faq.html">Glossary and FAQ</a></li><li><a href="../handbook/12-rule-catalog.html">Audit rule catalog</a></li><li><a href="../handbook/13-trust-and-assurance.html" aria-current="page">Trust and assurance</a></li><li><a href="../handbook/14-real-world-evaluation.html">Real-world evaluation</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain and release</a></li><li><a href="../handbook/16-performance-and-quality-metrics.html">Performance and quality metrics</a></li></ul></div><div class="nav-group"><p class="nav-title">Reference</p><ul><li><a href="../architecture/overview.html">Architecture overview</a></li><li><a href="../architecture/threat-model.html">Threat model (ArchSutra CLI and skills)</a></li><li><a href="../compatibility/matrix.html">Compatibility matrix</a></li><li><a href="../rfc/0001-archsutra-v0.1.html">RFC 0001: ArchSutra AI v0.1</a></li><li><a href="../decisions/ADR-0001-deterministic-cli-plus-ide-skills.html">ADR-0001: Deterministic CLI plus IDE-native skills</a></li><li><a href="../compatibility/smoke-tests/index.html">Live smoke tests</a></li><li><a href="../community/good-first-issues.html">Good first issues (ready to file)</a></li><li><a href="../legal/trademark-and-name-clearance.html">Name and trademark clearance</a></li><li><a href="../legal/legal-review-brief.html">Legal review brief</a></li><li><a href="../proof/accessibility.html">Accessibility audit of the documentation site</a></li></ul></div></aside>
36
48
  <main id="main" class="content"><article class="prose"><p class="crumbs"><a href="../index.html">ArchSutra AI</a> / Handbook</p><h1 id="trust-and-assurance">Trust and assurance</h1>
37
- <p class="lede">Every question a skeptical reader should ask, the evidence we have, and what is still open, with no rounding up.</p><p class="meta">Version 0.1.4 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/13-trust-and-assurance.md" rel="noopener">docs/handbook/13-trust-and-assurance.md</a></p>
49
+ <p class="lede">Every question a skeptical reader should ask, the evidence we have, and what is still open, with no rounding up.</p><p class="meta">Version 0.2.0 &middot; Source: <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/13-trust-and-assurance.md" rel="noopener">docs/handbook/13-trust-and-assurance.md</a></p>
38
50
  <p>An independent-style review of this project listed 15 gaps that stop people from trusting a young open-source tool. This page tracks each one. Status values: <strong>Done</strong> (evidence in the repository), <strong>Partly</strong> (some evidence, limits stated), <strong>Pending</strong> (cannot be done by the maintainer alone or needs a first run), <strong>Not possible yet</strong> (needs time or third parties).</p>
39
51
  <div class="table-wrap" tabindex="0" role="region" aria-label="Table 1: Trust and assurance"><table><thead><tr><th scope="col">#</th><th scope="col">Gap</th><th scope="col">Status</th><th scope="col">Evidence and honest limits</th></tr></thead><tbody><tr><td>1</td><td>Real-world accuracy</td><td><strong>Partly</strong></td><td>52 public repositories, 98 labeled findings, three batches, precision with confidence intervals: <a href="14-real-world-evaluation.html">Real-world evaluation</a>. Single labeler, small samples, no recall on real code</td></tr><tr><td>2</td><td>Live proof in AI IDEs</td><td><strong>Pending</strong></td><td>Layouts checked against vendor docs on 2026-11-01; protocol and empty results log: <a href="../compatibility/smoke-tests/index.html">smoke tests</a>. Needs the owner or community with access to each IDE</td></tr><tr><td>3</td><td>Head-to-head comparison</td><td><strong>Pending</strong></td><td>Workflow and script ready (<a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/.github/workflows/comparison.yml" rel="noopener"><code>comparison.yml</code></a>, <code>scripts/compare.mjs</code>); first run needs the repository on GitHub with Actions. A plain-AI-prompt comparison is deliberately not offered (not reproducible)</td></tr><tr><td>4</td><td>CI confirmed on all platforms</td><td><strong>Partly</strong></td><td>Ubuntu and Windows pass (Node 20, 22, 24, plus Ubuntu on the newest Node). macOS is not in CI: GitHub cancelled those jobs before a runner started, and there is no Mac available to re-check. Dependabot is limited and grouped to stop queue floods</td></tr><tr><td>5</td><td>Signed releases, provenance, SBOM</td><td><strong>Partly</strong></td><td>GitHub release <code>v0.1.2</code> has the tarball, two CycloneDX SBOMs, <code>SHA256SUMS</code>, and 2 GitHub attestations on digest <code>sha256:4a7f9124501f646dad77799e5c0d3ed6533b9884775904285bc050f77c989018</code>. Scorecard Signed-Releases still scores 0 and does not credit those attestations. npm <code>archsutra-ai@0.1.2</code> and <code>@0.1.3</code> are published from a laptop: no npm provenance, no <code>v0.1.3</code> tag, and <code>0.1.3</code> <code>gitHead</code> is <code>4a7ab27</code> (a commit whose <code>package.json</code> is still 0.1.2)</td></tr><tr><td>6</td><td>OpenSSF Scorecard</td><td><strong>Partly</strong></td><td>Public score <strong>5.7 / 10</strong> on 2026-11-06 for commit <code>06c87c4</code> (Scorecard v5.6.0). Checks at 10 include Security-Policy, Binary-Artifacts, Dependency-Update-Tool, SAST, Token-Permissions, Dangerous-Workflow, Vulnerabilities, and License. Zeros: Branch-Protection, Code-Review, Signed-Releases, Maintained (repository younger than 90 days), CII-Best-Practices, Fuzzing, Contributors. Packaging is -1 (no Actions npm publish). Pinned-Dependencies is 7 (fixture Dockerfiles and the Semgrep pip install are not hash-pinned). CI-Tests is -1 because Scorecard saw no pull request; tests do run on push</td></tr><tr><td>7</td><td>Pinned install and pinned actions</td><td><strong>Done</strong></td><td>README and user guide show tag-pinned <code>npx</code> usage; every GitHub Action in all workflows is pinned to a commit SHA with a version comment, kept fresh by Dependabot</td></tr><tr><td>8</td><td>Performance data</td><td><strong>Done</strong></td><td><a href="../proof/benchmarks.md">Benchmarks</a> (synthetic, 200 to 20 000 files) and real-repository timings in <code>docs/proof/realworld/results*.json</code>. Found and fixed a gap: added a total-bytes budget and cache cap so memory is bounded</td></tr><tr><td>9</td><td>Test coverage</td><td><strong>Done</strong></td><td>92% lines, 81% branches, 91% functions over <code>dist/</code> (<a href="../proof/coverage.txt">report</a>); CI prints coverage on every run. No threshold is enforced yet</td></tr><tr><td>10</td><td>Third-party review</td><td><strong>Not possible yet</strong></td><td>No external review exists. Added: pinned CodeQL, Scorecard, DCO, <code>security.txt</code>, ReDoS and hostile-input tests, and an open invitation in <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/SECURITY.md" rel="noopener">SECURITY.md</a>. Counts as done only after someone independent reports</td></tr><tr><td>11</td><td>Accessibility audit</td><td><strong>Partly</strong></td><td>axe-core on 19 pages x 2 themes: 0 violations after fixing 3 found issues; 22 contrast checks pass (<a href="../proof/accessibility.html">accessibility</a>). No screen-reader test; no formal conformance claim</td></tr><tr><td>12</td><td>Project maturity signals</td><td><strong>Not possible yet</strong></td><td>Added governance, support, templates, CODEOWNERS, <a href="../community/good-first-issues.html">good-first-issue backlog</a>, Discussions. Stars, users and track record take time and cannot be manufactured</td></tr><tr><td>13</td><td>Trademark clearance</td><td><strong>Pending</strong></td><td>Informal checks recorded, no formal search: <a href="../legal/trademark-and-name-clearance.html">name clearance</a>. Needs an attorney</td></tr><tr><td>14</td><td>Contribution policy</td><td><strong>Done</strong></td><td>DCO adopted (<a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/DCO.md" rel="noopener">DCO.md</a>) with a CI check that every PR commit is signed off</td></tr><tr><td>15</td><td>Lawyer review</td><td><strong>Pending</strong></td><td>Review-ready brief prepared: <a href="../legal/legal-review-brief.html">legal review brief</a>. Owner must engage counsel</td></tr></tbody></table></div>
40
52
  <h2 id="what-a-reader-can-verify-in-five-minutes">What a reader can verify in five minutes<a class="anchor" href="#what-a-reader-can-verify-in-five-minutes" aria-label="Link to this section">#</a></h2>
41
- <ol><li><code>git clone</code> and <code>npm ci &amp;&amp; npm test</code> (36 tests).</li><li><code>node scripts/realworld.mjs report holdout2</code> reproduces the headline accuracy table from the committed samples and labels.</li><li>Read ten labels in <code>docs/proof/realworld/labels-holdout2.json</code> and open the cited lines.</li><li><code>npm ls --omit=dev</code> shows no runtime dependencies.</li><li>Check the Actions page for the matrix, CodeQL and (after first run) Scorecard.</li></ol>
53
+ <ol><li><code>git clone</code> and <code>npm ci &amp;&amp; npm test</code> (52 tests).</li><li><code>node scripts/realworld.mjs report holdout2</code> reproduces the headline accuracy table from the committed samples and labels.</li><li>Read ten labels in <code>docs/proof/realworld/labels-holdout2.json</code> and open the cited lines.</li><li><code>npm ls --omit=dev</code> shows no runtime dependencies.</li><li>Check the Actions page for the matrix, CodeQL and (after first run) Scorecard.</li></ol>
42
54
  <h2 id="claims-we-deliberately-do-not-make">Claims we deliberately do not make<a class="anchor" href="#claims-we-deliberately-do-not-make" aria-label="Link to this section">#</a></h2>
43
55
  <ul><li>No certification of security, compliance or accuracy.</li><li>No claim that &quot;no findings&quot; means &quot;no problems&quot;.</li><li>No claim of support in any AI IDE beyond &quot;files written in the documented layout&quot;.</li><li>No Scorecard number, star count or user count.</li><li>No comparison win against other scanners.</li></ul>
44
56
  <h2 id="what-would-change-these-statuses">What would change these statuses<a class="anchor" href="#what-would-change-these-statuses" aria-label="Link to this section">#</a></h2>
45
- <div class="table-wrap" tabindex="0" role="region" aria-label="Table 2: What would change these statuses"><table><thead><tr><th scope="col">To reach</th><th scope="col">Needs</th></tr></thead><tbody><tr><td>Gap 2 Done</td><td>A passing smoke-test row per host</td></tr><tr><td>Gap 3 Done</td><td>One run of the comparison workflow, results reviewed by a human</td></tr><tr><td>Gap 4 Done</td><td>A green run of the full matrix on the latest commit</td></tr><tr><td>Gap 5 Done</td><td>Push a version tag; verify the attestation with <code>gh attestation verify</code></td></tr><tr><td>Gap 6 Done</td><td>Scorecard run completes; link the public result</td></tr><tr><td>Gap 10 Done</td><td>An independent security review or audit report</td></tr><tr><td>Gap 13 and 15 Done</td><td>An attorney's written clearance and document review</td></tr></tbody></table></div></article></main>
57
+ <div class="table-wrap" tabindex="0" role="region" aria-label="Table 2: What would change these statuses"><table><thead><tr><th scope="col">To reach</th><th scope="col">Needs</th></tr></thead><tbody><tr><td>Gap 2 Done</td><td>A passing smoke-test row per host</td></tr><tr><td>Gap 3 Done</td><td>One run of the comparison workflow, results reviewed by a human</td></tr><tr><td>Gap 4 Done</td><td>A green run of the full matrix on the latest commit</td></tr><tr><td>Gap 5 Done</td><td>Push a version tag; verify the attestation with <code>gh attestation verify</code></td></tr><tr><td>Gap 6 Done</td><td>Scorecard run completes; link the public result</td></tr><tr><td>Gap 10 Done</td><td>An independent security review or audit report</td></tr><tr><td>Gap 13 and 15 Done</td><td>An attorney's written clearance and document review</td></tr></tbody></table></div></article><nav class="pn" aria-label="Previous and next page"><a class="prev" href="12-rule-catalog.html"><small>Previous</small><span>Audit rule catalog</span></a><a class="next" href="14-real-world-evaluation.html"><small>Next</small><span>Real-world evaluation</span></a></nav><p class="edit"><a href="https://github.com/shahvatsalofficial/archsutra-ai/edit/main/docs/handbook/13-trust-and-assurance.md" rel="noopener">Edit this page on GitHub</a></p></main>
46
58
  <aside class="rail"><nav class="toc" aria-label="On this page"><p class="nav-title">On this page</p><ul><li class="l2"><a href="#what-a-reader-can-verify-in-five-minutes">What a reader can verify in five minutes</a></li><li class="l2"><a href="#claims-we-deliberately-do-not-make">Claims we deliberately do not make</a></li><li class="l2"><a href="#what-would-change-these-statuses">What would change these statuses</a></li></ul></nav></aside>
47
59
  </div>
48
60
  <footer class="footer">
49
61
  <div class="footer-inner">
50
- <p><strong>ArchSutra AI</strong> v0.1.4. Design. Audit. Evolve. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Licensed under <a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/LICENSE" rel="noopener">Apache-2.0</a>.</p>
51
- <p class="fine">Review aid only. Not a certification, compliance attestation, security guarantee or legal advice. Not affiliated with Anthropic, OpenAI, Cursor, GitHub or Google; product names belong to their owners. <a href="../handbook/07-security-privacy-legal.html">Legal details</a>.</p>
62
+ <div class="footer-grid">
63
+ <div class="about-col"><a class="brand" href="../index.html"><svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="currentColor" opacity=".14"/><path d="M6 24 16 7l10 17M10.5 18h11" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg><span>ArchSutra <b>AI</b></span></a><p class="about">Design. Audit. Evolve. An open-source, evidence-first software architecture agent. Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a>. Apache-2.0.</p></div>
64
+ <div><h4>Learn</h4><ul><li><a href="../guides/getting-started.html">Get started</a></li><li><a href="../guides/real-world-scenarios.html">Real-world scenarios</a></li><li><a href="../guides/how-it-works.html">How it works</a></li><li><a href="../guides/cheat-sheet.html">Cheat sheet</a></li></ul></div>
65
+ <div><h4>Trust</h4><ul><li><a href="../guides/evidence-at-a-glance.html">Evidence at a glance</a></li><li><a href="../handbook/13-trust-and-assurance.html">Honesty register</a></li><li><a href="../handbook/07-security-privacy-legal.html">Security and legal</a></li><li><a href="../handbook/15-supply-chain-and-release.html">Supply chain</a></li></ul></div>
66
+ <div><h4>Project</h4><ul><li><a href="https://github.com/shahvatsalofficial/archsutra-ai" rel="noopener">GitHub</a></li><li><a href="https://www.npmjs.com/package/archsutra-ai" rel="noopener">npm</a></li><li><a href="../handbook/10-contributor-guide.html">Contribute</a></li><li><a href="https://github.com/shahvatsalofficial/archsutra-ai/blob/main/CHANGELOG.md" rel="noopener">Changelog</a></li></ul></div>
67
+ </div>
68
+ <p class="fine">v0.2.0. Review aid only. Not a certification, compliance attestation, security guarantee or legal advice. Not affiliated with Anthropic, OpenAI, Cursor, GitHub or Google; product names belong to their owners. <a href="../handbook/07-security-privacy-legal.html">Legal details</a>.</p>
52
69
  </div>
53
70
  </footer>
54
71
  <script src="../assets/site.js" type="module"></script>
@@ -24,7 +24,7 @@ An independent-style review of this project listed 15 gaps that stop people from
24
24
 
25
25
  ## What a reader can verify in five minutes
26
26
 
27
- 1. `git clone` and `npm ci && npm test` (36 tests).
27
+ 1. `git clone` and `npm ci && npm test` (52 tests).
28
28
  2. `node scripts/realworld.mjs report holdout2` reproduces the headline accuracy table from the committed samples and labels.
29
29
  3. Read ten labels in `docs/proof/realworld/labels-holdout2.json` and open the cited lines.
30
30
  4. `npm ls --omit=dev` shows no runtime dependencies.