rtexit-method 0.1.0 → 0.1.1

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 (220) hide show
  1. package/package.json +2 -5
  2. package/packaged-assets/.agents/skills/rt-active-recon/SKILL.md +767 -0
  3. package/packaged-assets/.agents/skills/rt-active-recon/workflow.md +68 -0
  4. package/packaged-assets/.agents/skills/rt-agent-breaker/SKILL.md +65 -0
  5. package/packaged-assets/.agents/skills/rt-agent-breaker/customize.toml +76 -0
  6. package/packaged-assets/.agents/skills/rt-agent-commander/SKILL.md +63 -0
  7. package/packaged-assets/.agents/skills/rt-agent-commander/customize.toml +67 -0
  8. package/packaged-assets/.agents/skills/rt-agent-ghost/SKILL.md +65 -0
  9. package/packaged-assets/.agents/skills/rt-agent-ghost/customize.toml +77 -0
  10. package/packaged-assets/.agents/skills/rt-agent-navigator/SKILL.md +62 -0
  11. package/packaged-assets/.agents/skills/rt-agent-navigator/customize.toml +61 -0
  12. package/packaged-assets/.agents/skills/rt-agent-phantom/SKILL.md +62 -0
  13. package/packaged-assets/.agents/skills/rt-agent-phantom/customize.toml +62 -0
  14. package/packaged-assets/.agents/skills/rt-agent-scout/SKILL.md +62 -0
  15. package/packaged-assets/.agents/skills/rt-agent-scout/customize.toml +61 -0
  16. package/packaged-assets/.agents/skills/rt-agent-scribe/SKILL.md +65 -0
  17. package/packaged-assets/.agents/skills/rt-agent-scribe/customize.toml +77 -0
  18. package/packaged-assets/.agents/skills/rt-attack-chain-builder/SKILL.md +476 -0
  19. package/packaged-assets/.agents/skills/rt-attack-chain-builder/workflow.md +68 -0
  20. package/packaged-assets/.agents/skills/rt-attack-surface-map/SKILL.md +1209 -0
  21. package/packaged-assets/.agents/skills/rt-attack-surface-map/template.md +62 -0
  22. package/packaged-assets/.agents/skills/rt-autodoc/SKILL.md +258 -0
  23. package/packaged-assets/.agents/skills/rt-c2-operations/SKILL.md +1072 -0
  24. package/packaged-assets/.agents/skills/rt-c2-operations/workflow.md +68 -0
  25. package/packaged-assets/.agents/skills/rt-compliance-mapper/SKILL.md +773 -0
  26. package/packaged-assets/.agents/skills/rt-create-sead/SKILL.md +74 -0
  27. package/packaged-assets/.agents/skills/rt-create-sead/template.md +89 -0
  28. package/packaged-assets/.agents/skills/rt-create-sead/workflow.md +68 -0
  29. package/packaged-assets/.agents/skills/rt-credential-access/SKILL.md +756 -0
  30. package/packaged-assets/.agents/skills/rt-credential-hunt/SKILL.md +856 -0
  31. package/packaged-assets/.agents/skills/rt-credential-hunt/workflow.md +68 -0
  32. package/packaged-assets/.agents/skills/rt-cvss-calculator/SKILL.md +542 -0
  33. package/packaged-assets/.agents/skills/rt-cvss-calculator/cvss4-matrix.csv +20 -0
  34. package/packaged-assets/.agents/skills/rt-data-exfiltration/SKILL.md +784 -0
  35. package/packaged-assets/.agents/skills/rt-defense-evasion/SKILL.md +987 -0
  36. package/packaged-assets/.agents/skills/rt-evidence-chain/SKILL.md +712 -0
  37. package/packaged-assets/.agents/skills/rt-evidence-chain/template.md +31 -0
  38. package/packaged-assets/.agents/skills/rt-executive-report/SKILL.md +718 -0
  39. package/packaged-assets/.agents/skills/rt-executive-report/template.md +38 -0
  40. package/packaged-assets/.agents/skills/rt-executive-report/workflow.md +68 -0
  41. package/packaged-assets/.agents/skills/rt-exploit-active-directory/SKILL.md +1078 -0
  42. package/packaged-assets/.agents/skills/rt-exploit-active-directory/ad-checklist.csv +12 -0
  43. package/packaged-assets/.agents/skills/rt-exploit-active-directory/workflow.md +68 -0
  44. package/packaged-assets/.agents/skills/rt-exploit-android/SKILL.md +1329 -0
  45. package/packaged-assets/.agents/skills/rt-exploit-android/masvs-checklist.csv +10 -0
  46. package/packaged-assets/.agents/skills/rt-exploit-android/workflow.md +68 -0
  47. package/packaged-assets/.agents/skills/rt-exploit-api/SKILL.md +1547 -0
  48. package/packaged-assets/.agents/skills/rt-exploit-api/workflow.md +68 -0
  49. package/packaged-assets/.agents/skills/rt-exploit-auth/SKILL.md +1949 -0
  50. package/packaged-assets/.agents/skills/rt-exploit-auth/workflow.md +68 -0
  51. package/packaged-assets/.agents/skills/rt-exploit-bec/SKILL.md +69 -0
  52. package/packaged-assets/.agents/skills/rt-exploit-cloud-aws/SKILL.md +865 -0
  53. package/packaged-assets/.agents/skills/rt-exploit-cloud-aws/workflow.md +68 -0
  54. package/packaged-assets/.agents/skills/rt-exploit-cloud-azure/SKILL.md +1258 -0
  55. package/packaged-assets/.agents/skills/rt-exploit-cloud-gcp/SKILL.md +981 -0
  56. package/packaged-assets/.agents/skills/rt-exploit-containers/SKILL.md +55 -0
  57. package/packaged-assets/.agents/skills/rt-exploit-databases/SKILL.md +1374 -0
  58. package/packaged-assets/.agents/skills/rt-exploit-desktop-mac/SKILL.md +834 -0
  59. package/packaged-assets/.agents/skills/rt-exploit-desktop-win/SKILL.md +903 -0
  60. package/packaged-assets/.agents/skills/rt-exploit-desktop-win/workflow.md +68 -0
  61. package/packaged-assets/.agents/skills/rt-exploit-dotnet/SKILL.md +945 -0
  62. package/packaged-assets/.agents/skills/rt-exploit-elasticsearch/SKILL.md +68 -0
  63. package/packaged-assets/.agents/skills/rt-exploit-electron/SKILL.md +1023 -0
  64. package/packaged-assets/.agents/skills/rt-exploit-electron/workflow.md +68 -0
  65. package/packaged-assets/.agents/skills/rt-exploit-file-upload/SKILL.md +1576 -0
  66. package/packaged-assets/.agents/skills/rt-exploit-file-upload/payloads/README.md +4 -0
  67. package/packaged-assets/.agents/skills/rt-exploit-file-upload/workflow.md +68 -0
  68. package/packaged-assets/.agents/skills/rt-exploit-firebase/SKILL.md +54 -0
  69. package/packaged-assets/.agents/skills/rt-exploit-frameworks/SKILL.md +967 -0
  70. package/packaged-assets/.agents/skills/rt-exploit-idor/SKILL.md +1693 -0
  71. package/packaged-assets/.agents/skills/rt-exploit-idor/workflow.md +68 -0
  72. package/packaged-assets/.agents/skills/rt-exploit-injection/SKILL.md +1860 -0
  73. package/packaged-assets/.agents/skills/rt-exploit-injection/payloads/sqlmap-tampers.txt +22 -0
  74. package/packaged-assets/.agents/skills/rt-exploit-injection/workflow.md +68 -0
  75. package/packaged-assets/.agents/skills/rt-exploit-ios/SKILL.md +1214 -0
  76. package/packaged-assets/.agents/skills/rt-exploit-ios/workflow.md +68 -0
  77. package/packaged-assets/.agents/skills/rt-exploit-iot/SKILL.md +91 -0
  78. package/packaged-assets/.agents/skills/rt-exploit-iot/workflow.md +68 -0
  79. package/packaged-assets/.agents/skills/rt-exploit-java/SKILL.md +1009 -0
  80. package/packaged-assets/.agents/skills/rt-exploit-jwt/SKILL.md +1327 -0
  81. package/packaged-assets/.agents/skills/rt-exploit-jwt/workflow.md +68 -0
  82. package/packaged-assets/.agents/skills/rt-exploit-mongodb/SKILL.md +67 -0
  83. package/packaged-assets/.agents/skills/rt-exploit-mssql/SKILL.md +52 -0
  84. package/packaged-assets/.agents/skills/rt-exploit-mysql/SKILL.md +53 -0
  85. package/packaged-assets/.agents/skills/rt-exploit-network/SKILL.md +118 -0
  86. package/packaged-assets/.agents/skills/rt-exploit-network/workflow.md +68 -0
  87. package/packaged-assets/.agents/skills/rt-exploit-nodejs/SKILL.md +852 -0
  88. package/packaged-assets/.agents/skills/rt-exploit-osticket/SKILL.md +63 -0
  89. package/packaged-assets/.agents/skills/rt-exploit-phishing/SKILL.md +173 -0
  90. package/packaged-assets/.agents/skills/rt-exploit-phishing/templates/README.md +4 -0
  91. package/packaged-assets/.agents/skills/rt-exploit-phishing/workflow.md +68 -0
  92. package/packaged-assets/.agents/skills/rt-exploit-php/SKILL.md +1119 -0
  93. package/packaged-assets/.agents/skills/rt-exploit-physical/SKILL.md +63 -0
  94. package/packaged-assets/.agents/skills/rt-exploit-physical/workflow.md +68 -0
  95. package/packaged-assets/.agents/skills/rt-exploit-postgresql/SKILL.md +67 -0
  96. package/packaged-assets/.agents/skills/rt-exploit-python/SKILL.md +986 -0
  97. package/packaged-assets/.agents/skills/rt-exploit-redis/SKILL.md +68 -0
  98. package/packaged-assets/.agents/skills/rt-exploit-ruby/SKILL.md +61 -0
  99. package/packaged-assets/.agents/skills/rt-exploit-scada/SKILL.md +1091 -0
  100. package/packaged-assets/.agents/skills/rt-exploit-ssrf/SKILL.md +1528 -0
  101. package/packaged-assets/.agents/skills/rt-exploit-ssrf/payloads.txt +23 -0
  102. package/packaged-assets/.agents/skills/rt-exploit-ssrf/workflow.md +68 -0
  103. package/packaged-assets/.agents/skills/rt-exploit-vishing/SKILL.md +121 -0
  104. package/packaged-assets/.agents/skills/rt-exploit-vishing/scripts.md +4 -0
  105. package/packaged-assets/.agents/skills/rt-exploit-web/SKILL.md +1902 -0
  106. package/packaged-assets/.agents/skills/rt-exploit-web/owasp-checklist.csv +14 -0
  107. package/packaged-assets/.agents/skills/rt-exploit-web/workflow.md +68 -0
  108. package/packaged-assets/.agents/skills/rt-exploit-wireless/SKILL.md +71 -0
  109. package/packaged-assets/.agents/skills/rt-exploit-wordpress/SKILL.md +1565 -0
  110. package/packaged-assets/.agents/skills/rt-exploit-wordpress/cves.csv +7 -0
  111. package/packaged-assets/.agents/skills/rt-exploit-wordpress/workflow.md +68 -0
  112. package/packaged-assets/.agents/skills/rt-exploit-xss/SKILL.md +1526 -0
  113. package/packaged-assets/.agents/skills/rt-exploit-xss/payloads.txt +18 -0
  114. package/packaged-assets/.agents/skills/rt-exploit-xss/workflow.md +68 -0
  115. package/packaged-assets/.agents/skills/rt-finding-document/SKILL.md +687 -0
  116. package/packaged-assets/.agents/skills/rt-finding-document/template.md +71 -0
  117. package/packaged-assets/.agents/skills/rt-finding-document/workflow.md +68 -0
  118. package/packaged-assets/.agents/skills/rt-finding-tracker/SKILL.md +216 -0
  119. package/packaged-assets/.agents/skills/rt-finding-tracker/workflow.md +68 -0
  120. package/packaged-assets/.agents/skills/rt-help/SKILL.md +292 -0
  121. package/packaged-assets/.agents/skills/rt-help/workflow.md +68 -0
  122. package/packaged-assets/.agents/skills/rt-js-analysis/SKILL.md +639 -0
  123. package/packaged-assets/.agents/skills/rt-js-analysis/patterns.txt +27 -0
  124. package/packaged-assets/.agents/skills/rt-js-analysis/workflow.md +68 -0
  125. package/packaged-assets/.agents/skills/rt-kill-chain-map/SKILL.md +393 -0
  126. package/packaged-assets/.agents/skills/rt-lateral-movement/SKILL.md +1032 -0
  127. package/packaged-assets/.agents/skills/rt-lateral-movement/workflow.md +68 -0
  128. package/packaged-assets/.agents/skills/rt-methodology-selector/SKILL.md +69 -0
  129. package/packaged-assets/.agents/skills/rt-methodology-selector/frameworks.csv +10 -0
  130. package/packaged-assets/.agents/skills/rt-methodology-selector/workflow.md +68 -0
  131. package/packaged-assets/.agents/skills/rt-mitre-map/SKILL.md +668 -0
  132. package/packaged-assets/.agents/skills/rt-mitre-map/tactics.csv +16 -0
  133. package/packaged-assets/.agents/skills/rt-mitre-map/workflow.md +68 -0
  134. package/packaged-assets/.agents/skills/rt-osint/SKILL.md +775 -0
  135. package/packaged-assets/.agents/skills/rt-osint/osint-sources.csv +12 -0
  136. package/packaged-assets/.agents/skills/rt-osint/workflow.md +68 -0
  137. package/packaged-assets/.agents/skills/rt-party-mode/SKILL.md +249 -0
  138. package/packaged-assets/.agents/skills/rt-party-mode/workflow.md +68 -0
  139. package/packaged-assets/.agents/skills/rt-persistence/SKILL.md +1146 -0
  140. package/packaged-assets/.agents/skills/rt-persistence/workflow.md +68 -0
  141. package/packaged-assets/.agents/skills/rt-poc-writer/SKILL.md +640 -0
  142. package/packaged-assets/.agents/skills/rt-post-exploitation/SKILL.md +998 -0
  143. package/packaged-assets/.agents/skills/rt-post-exploitation/linux-checklist.csv +10 -0
  144. package/packaged-assets/.agents/skills/rt-post-exploitation/windows-checklist.csv +10 -0
  145. package/packaged-assets/.agents/skills/rt-post-exploitation/workflow.md +68 -0
  146. package/packaged-assets/.agents/skills/rt-privilege-escalation/SKILL.md +1027 -0
  147. package/packaged-assets/.agents/skills/rt-privilege-escalation/linux-checklist.csv +10 -0
  148. package/packaged-assets/.agents/skills/rt-privilege-escalation/win-checklist.csv +10 -0
  149. package/packaged-assets/.agents/skills/rt-privilege-escalation/workflow.md +68 -0
  150. package/packaged-assets/.agents/skills/rt-remediation-roadmap/SKILL.md +665 -0
  151. package/packaged-assets/.agents/skills/rt-remediation-roadmap/template.md +28 -0
  152. package/packaged-assets/.agents/skills/rt-risk-matrix/SKILL.md +232 -0
  153. package/packaged-assets/.agents/skills/rt-rules-of-engagement/SKILL.md +62 -0
  154. package/packaged-assets/.agents/skills/rt-rules-of-engagement/workflow.md +68 -0
  155. package/packaged-assets/.agents/skills/rt-scenario-c001/SKILL.md +71 -0
  156. package/packaged-assets/.agents/skills/rt-scenario-c002/SKILL.md +69 -0
  157. package/packaged-assets/.agents/skills/rt-scenario-c003/SKILL.md +71 -0
  158. package/packaged-assets/.agents/skills/rt-scenario-c004/SKILL.md +71 -0
  159. package/packaged-assets/.agents/skills/rt-scenario-c005/SKILL.md +72 -0
  160. package/packaged-assets/.agents/skills/rt-scenario-d001/SKILL.md +378 -0
  161. package/packaged-assets/.agents/skills/rt-scenario-d002/SKILL.md +392 -0
  162. package/packaged-assets/.agents/skills/rt-scenario-d003/SKILL.md +522 -0
  163. package/packaged-assets/.agents/skills/rt-scenario-d004/SKILL.md +373 -0
  164. package/packaged-assets/.agents/skills/rt-scenario-d005/SKILL.md +458 -0
  165. package/packaged-assets/.agents/skills/rt-scenario-library/SKILL.md +292 -0
  166. package/packaged-assets/.agents/skills/rt-scenario-library/scenarios.csv +32 -0
  167. package/packaged-assets/.agents/skills/rt-scenario-m001/SKILL.md +796 -0
  168. package/packaged-assets/.agents/skills/rt-scenario-m002/SKILL.md +723 -0
  169. package/packaged-assets/.agents/skills/rt-scenario-m003/SKILL.md +463 -0
  170. package/packaged-assets/.agents/skills/rt-scenario-m004/SKILL.md +449 -0
  171. package/packaged-assets/.agents/skills/rt-scenario-m005/SKILL.md +505 -0
  172. package/packaged-assets/.agents/skills/rt-scenario-n001/SKILL.md +573 -0
  173. package/packaged-assets/.agents/skills/rt-scenario-n002/SKILL.md +112 -0
  174. package/packaged-assets/.agents/skills/rt-scenario-n003/SKILL.md +100 -0
  175. package/packaged-assets/.agents/skills/rt-scenario-n004/SKILL.md +90 -0
  176. package/packaged-assets/.agents/skills/rt-scenario-n005/SKILL.md +71 -0
  177. package/packaged-assets/.agents/skills/rt-scenario-w001/SKILL.md +635 -0
  178. package/packaged-assets/.agents/skills/rt-scenario-w002/SKILL.md +612 -0
  179. package/packaged-assets/.agents/skills/rt-scenario-w003/SKILL.md +449 -0
  180. package/packaged-assets/.agents/skills/rt-scenario-w004/SKILL.md +648 -0
  181. package/packaged-assets/.agents/skills/rt-scenario-w005/SKILL.md +479 -0
  182. package/packaged-assets/.agents/skills/rt-scenario-w006/SKILL.md +443 -0
  183. package/packaged-assets/.agents/skills/rt-scenario-w007/SKILL.md +494 -0
  184. package/packaged-assets/.agents/skills/rt-scenario-w008/SKILL.md +576 -0
  185. package/packaged-assets/.agents/skills/rt-scenario-w009/SKILL.md +518 -0
  186. package/packaged-assets/.agents/skills/rt-scenario-w010/SKILL.md +574 -0
  187. package/packaged-assets/.agents/skills/rt-scope-definition/SKILL.md +79 -0
  188. package/packaged-assets/.agents/skills/rt-scope-definition/workflow.md +68 -0
  189. package/packaged-assets/.agents/skills/rt-shodan-recon/SKILL.md +880 -0
  190. package/packaged-assets/.agents/skills/rt-status/SKILL.md +64 -0
  191. package/packaged-assets/.agents/skills/rt-subdomain-enum/SKILL.md +906 -0
  192. package/packaged-assets/.agents/skills/rt-subdomain-enum/workflow.md +68 -0
  193. package/packaged-assets/.agents/skills/rt-technical-report/SKILL.md +710 -0
  194. package/packaged-assets/.agents/skills/rt-technical-report/template.md +41 -0
  195. package/packaged-assets/.agents/skills/rt-technical-report/workflow.md +68 -0
  196. package/packaged-assets/.agents/skills/rt-threat-model/SKILL.md +59 -0
  197. package/packaged-assets/.agents/skills/rt-threat-model/template.md +32 -0
  198. package/packaged-assets/.agents/skills/rt-threat-model/workflow.md +68 -0
  199. package/packaged-assets/.agents/skills/rt-timeline/SKILL.md +338 -0
  200. package/packaged-assets/RTEXIT.md +127 -0
  201. package/tools/installer/lib/asset-manifest.js +10 -5
  202. package/tools/installer/lib/copy-assets.js +5 -2
  203. /package/{_rtexit → packaged-assets/_rtexit}/config.toml +0 -0
  204. /package/{_rtexit → packaged-assets/_rtexit}/config.user.toml +0 -0
  205. /package/{_rtexit → packaged-assets/_rtexit}/custom/config.toml +0 -0
  206. /package/{_rtexit → packaged-assets/_rtexit}/scripts/autodoc_engine.py +0 -0
  207. /package/{_rtexit → packaged-assets/_rtexit}/scripts/finding_tracker.py +0 -0
  208. /package/{_rtexit → packaged-assets/_rtexit}/scripts/resolve_config.py +0 -0
  209. /package/{_rtexit → packaged-assets/_rtexit}/scripts/resolve_customization.py +0 -0
  210. /package/{resources → packaged-assets/resources}/certifications.md +0 -0
  211. /package/{resources → packaged-assets/resources}/payloads.md +0 -0
  212. /package/{resources → packaged-assets/resources}/tools.md +0 -0
  213. /package/{resources → packaged-assets/resources}/wordlists.md +0 -0
  214. /package/{templates → packaged-assets/templates}/attack-chain-template.md +0 -0
  215. /package/{templates → packaged-assets/templates}/executive-report-template.md +0 -0
  216. /package/{templates → packaged-assets/templates}/executive-report.md +0 -0
  217. /package/{templates → packaged-assets/templates}/finding-template.md +0 -0
  218. /package/{templates → packaged-assets/templates}/remediation-roadmap.md +0 -0
  219. /package/{templates → packaged-assets/templates}/sead-template.md +0 -0
  220. /package/{templates → packaged-assets/templates}/technical-report.md +0 -0
@@ -0,0 +1,62 @@
1
+ # Attack Surface Map Template
2
+
3
+ ## Engagement
4
+
5
+ | Field | Value |
6
+ |---|---|
7
+ | Client | [CLIENT] |
8
+ | Reference | [REF] |
9
+ | Date | [YYYY-MM-DD] |
10
+ | Scope Source | SEAD / Scope document |
11
+
12
+ ## Executive Snapshot
13
+
14
+ | Metric | Count | Notes |
15
+ |---|---:|---|
16
+ | Root domains | 0 | |
17
+ | Subdomains | 0 | |
18
+ | Live web apps | 0 | |
19
+ | APIs | 0 | |
20
+ | Exposed admin panels | 0 | |
21
+ | Cloud assets | 0 | |
22
+ | High-priority assets | 0 | |
23
+
24
+ ## Asset Inventory
25
+
26
+ | Asset | Type | Exposure | Tech | Owner | Priority | Evidence |
27
+ |---|---|---|---|---|---|---|
28
+ | [asset] | web/api/cloud/network | internet/internal | [stack] | [owner] | H/M/L | [path] |
29
+
30
+ ## Attack Surface Categories
31
+
32
+ ### Web Applications
33
+
34
+ | URL | Status | Auth Required | Technology | Notes |
35
+ |---|---:|---|---|---|
36
+
37
+ ### APIs
38
+
39
+ | Endpoint | Protocol | Auth | Documentation | Notes |
40
+ |---|---|---|---|---|
41
+
42
+ ### Network Services
43
+
44
+ | Host | Port | Service | Exposure | Risk |
45
+ |---|---:|---|---|---|
46
+
47
+ ### Cloud Assets
48
+
49
+ | Provider | Resource | Public? | Identity Risk | Notes |
50
+ |---|---|---|---|---|
51
+
52
+ ## Priority Queue
53
+
54
+ | Priority | Asset | Reason | Recommended Skill |
55
+ |---:|---|---|---|
56
+ | 1 | [asset] | [reason] | [rt-skill] |
57
+
58
+ ## Evidence Index
59
+
60
+ | Evidence | Source | Hash | Notes |
61
+ |---|---|---|---|
62
+
@@ -0,0 +1,258 @@
1
+ ---
2
+ name: rt-autodoc
3
+ description: "Manual trigger for RTExit auto-documentation engine. Logs activities, commands, and findings to engagement timeline and evidence chain. Wraps autodoc_engine.py for skill-level integration. Use explicitly to log important activities not automatically captured. Creates SHA-256 hashed evidence entries."
4
+ ---
5
+
6
+ # rt-autodoc Skill Guide
7
+
8
+ ## 1. Purpose and When to Use
9
+
10
+ `rt-autodoc` is the manual documentation trigger for the RTExit auto-documentation engine. It ensures that significant activities, findings, commands, and decisions are captured in the engagement timeline and evidence chain even when automatic capture does not occur.
11
+
12
+ ### Primary purposes
13
+
14
+ - Log discrete activities or findings that fall outside automated capture hooks
15
+ - Commit SHA-256 hashed evidence entries to the immutable evidence chain
16
+ - Maintain a coherent, auditable engagement timeline across all RTExit operations
17
+ - Bridge gap when other skills produce outputs that must be formally recorded
18
+
19
+ ### When to invoke explicitly
20
+
21
+ - After running discovery scans or recon commands manually in a terminal
22
+ - When documenting analyst decisions or interpretation of ambiguous findings
23
+ - To record out-of-band communications or observations (e.g., client call notes)
24
+ - After importing external evidence files not produced by RTExit scripts
25
+ - When a prior skill execution produced findings but autodoc hooks did not fire
26
+ - To create checkpoint entries before and after high-risk or destructive actions
27
+ - Any time you need a tamper-evident record of a specific moment in the engagement
28
+
29
+ ### When NOT to invoke
30
+
31
+ - Routine script executions that already trigger autodoc hooks automatically
32
+ - Duplicate logging of entries already present in the timeline
33
+ - Administrative bookkeeping unrelated to the active engagement
34
+
35
+ ---
36
+
37
+ ## 2. Step-by-Step Workflow
38
+
39
+ ### Step 1 - Identify what to document
40
+
41
+ Determine the category of the entry:
42
+
43
+ - `activity` - general analyst action (e.g., started port scan)
44
+ - `command` - specific command or tool invocation with its output
45
+ - `finding` - discovered vulnerability, misconfiguration, or artifact
46
+ - `decision` - analyst judgment or scope change
47
+ - `evidence` - file, screenshot, or artifact to anchor in the chain
48
+
49
+ ### Step 2 - Gather required fields
50
+
51
+ Collect the following before invoking:
52
+
53
+ | Field | Description | Required |
54
+ |---|---|---|
55
+ | `category` | Entry type (activity, command, finding, decision, evidence) | Yes |
56
+ | `title` | Short human-readable summary (max 120 chars) | Yes |
57
+ | `detail` | Full description, command text, or finding narrative | Yes |
58
+ | `severity` | info / low / medium / high / critical (findings only) | Conditional |
59
+ | `artifact_path` | Absolute path to associated file or output | Optional |
60
+ | `tags` | Comma-separated labels for later filtering | Optional |
61
+
62
+ ### Step 3 - Invoke the skill
63
+
64
+ The skill wraps `autodoc_engine.py`. A typical invocation pattern:
65
+
66
+ ```
67
+ rt-autodoc
68
+ category: finding
69
+ title: SMB signing disabled on 10.10.1.45
70
+ detail: nmap --script smb-security-mode output confirms message_signing: disabled. Host is susceptible to relay attacks.
71
+ severity: high
72
+ tags: smb, relay, lateral-movement
73
+ ```
74
+
75
+ ### Step 4 - Engine processing
76
+
77
+ `autodoc_engine.py` performs the following internally:
78
+
79
+ 1. Reads the active engagement context from the RTExit session state
80
+ 2. Stamps the entry with ISO-8601 UTC timestamp
81
+ 3. Generates SHA-256 hash of (timestamp + category + title + detail)
82
+ 4. Appends entry to `timeline.jsonl` in the engagement output directory
83
+ 5. Appends hash to `evidence_chain.log` with back-reference to the previous hash (chain linkage)
84
+ 6. Writes a human-readable summary line to `activity_log.txt`
85
+ 7. Returns the entry ID and hash for confirmation
86
+
87
+ ### Step 5 - Verify the entry
88
+
89
+ After the skill returns, confirm the entry was recorded:
90
+
91
+ ```
92
+ cat <engagement_dir>/evidence_chain.log | tail -5
93
+ ```
94
+
95
+ The last line should contain the new hash and entry ID.
96
+
97
+ ---
98
+
99
+ ## 3. Integration with RTExit Scripts and Other Skills
100
+
101
+ ### autodoc_engine.py
102
+
103
+ `rt-autodoc` is a skill-level wrapper around `autodoc_engine.py`. The engine exposes a CLI interface:
104
+
105
+ ```
106
+ python autodoc_engine.py \
107
+ --category finding \
108
+ --title "SMB signing disabled" \
109
+ --detail "Full detail text here" \
110
+ --severity high \
111
+ --tags smb,relay
112
+ ```
113
+
114
+ The skill handles argument marshalling, session context injection, and error reporting on top of this CLI.
115
+
116
+ ### Engagement session state
117
+
118
+ The engine reads the active engagement from the RTExit session state file (typically `.rtexit_session.json` in the project root). This file must exist and contain a valid `engagement_id` before `rt-autodoc` can log entries. Use `rt-init` or `rt-session` to establish the session first.
119
+
120
+ ### Integration with other skills
121
+
122
+ | Skill | Integration point |
123
+ |---|---|
124
+ | `rt-recon` | Call rt-autodoc after manual recon steps to capture findings not auto-logged |
125
+ | `rt-exploit` | Log pre-exploitation decision entries and post-exploitation artifacts |
126
+ | `rt-report` | Timeline and evidence chain produced by rt-autodoc feed directly into report generation |
127
+ | `rt-evidence` | rt-autodoc creates evidence chain anchors; rt-evidence manages associated files |
128
+ | `rt-session` | Provides session context that rt-autodoc reads to scope entries correctly |
129
+
130
+ ### File outputs
131
+
132
+ | File | Purpose |
133
+ |---|---|
134
+ | `<engagement_dir>/timeline.jsonl` | Machine-readable JSONL timeline of all entries |
135
+ | `<engagement_dir>/evidence_chain.log` | Append-only SHA-256 hash chain for tamper detection |
136
+ | `<engagement_dir>/activity_log.txt` | Human-readable chronological activity summary |
137
+
138
+ ---
139
+
140
+ ## 4. Example Outputs and Interactions
141
+
142
+ ### Example 1 - Logging a command and its output
143
+
144
+ **Input to skill:**
145
+
146
+ ```
147
+ rt-autodoc
148
+ category: command
149
+ title: Ran nmap SYN scan against 10.10.1.0/24
150
+ detail: Command: nmap -sS -p 22,80,443,445,3389 10.10.1.0/24 -oN nmap_syn.txt
151
+ Result: 14 hosts up. Ports 445 and 3389 open on multiple hosts. Full output in nmap_syn.txt.
152
+ artifact_path: /engagements/ENG-2026-001/evidence/nmap_syn.txt
153
+ tags: nmap, portscan, smb, rdp
154
+ ```
155
+
156
+ **Timeline entry written (timeline.jsonl):**
157
+
158
+ ```json
159
+ {
160
+ "entry_id": "ae7f3c1b",
161
+ "timestamp": "2026-05-31T09:14:22Z",
162
+ "category": "command",
163
+ "title": "Ran nmap SYN scan against 10.10.1.0/24",
164
+ "detail": "Command: nmap -sS -p 22,80,443,445,3389 10.10.1.0/24 ...",
165
+ "artifact_path": "/engagements/ENG-2026-001/evidence/nmap_syn.txt",
166
+ "tags": ["nmap", "portscan", "smb", "rdp"],
167
+ "hash": "3a7f9bc2d4e1058fa6c3b7d92e4f1a0c8b5d3e7f9a2c4b6d8f0e2a4c6b8d0f2",
168
+ "prev_hash": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c"
169
+ }
170
+ ```
171
+
172
+ **Evidence chain append:**
173
+
174
+ ```
175
+ 2026-05-31T09:14:22Z | ae7f3c1b | 3a7f9bc2d4e1058fa6c3b7d92e4f1a0c8b5d3e7f9a2c4b6d8f0e2a4c6b8d0f2
176
+ ```
177
+
178
+ ### Example 2 - Logging a high-severity finding
179
+
180
+ **Input:**
181
+
182
+ ```
183
+ rt-autodoc
184
+ category: finding
185
+ title: Kerberoastable service account discovered - svc_sql
186
+ detail: GetUserSPNs.py output identified svc_sql with SPN MSSQLSvc/db01.corp.local:1433. Account has no pre-auth requirement. Hash captured for offline cracking.
187
+ severity: high
188
+ tags: kerberoasting, active-directory, credential-access
189
+ artifact_path: /engagements/ENG-2026-001/evidence/kerberoast_hashes.txt
190
+ ```
191
+
192
+ **Skill response:**
193
+
194
+ ```
195
+ [rt-autodoc] Entry logged successfully.
196
+ Entry ID : b3d9e2f1
197
+ Category : finding
198
+ Severity : high
199
+ Timestamp: 2026-05-31T11:03:45Z
200
+ Hash : 8f2a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9
201
+ Chain pos: 47 (prev: 9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0)
202
+ ```
203
+
204
+ ### Example 3 - Logging an analyst decision
205
+
206
+ **Input:**
207
+
208
+ ```
209
+ rt-autodoc
210
+ category: decision
211
+ title: Deferred exploitation of CVE-2024-1234 pending client approval
212
+ detail: Discovered RCE vector on 10.10.1.20 (CVE-2024-1234). Risk of service disruption is high. Decision made to pause exploitation and notify client via secure channel before proceeding. Awaiting written go-ahead.
213
+ tags: scope, client-communication, deferred
214
+ ```
215
+
216
+ **Activity log line written:**
217
+
218
+ ```
219
+ [2026-05-31 13:22:07 UTC] [decision] Deferred exploitation of CVE-2024-1234 pending client approval (entry: c1f4a8b2)
220
+ ```
221
+
222
+ ---
223
+
224
+ ## 5. Practical Usage Tips
225
+
226
+ ### Build a habit of pre/post entries for high-risk actions
227
+
228
+ Before any destructive or high-impact action, log a `decision` entry stating intent. After the action, log a `command` or `finding` entry with the result. This creates a clear before-and-after bracket in the evidence chain.
229
+
230
+ ### Use tags consistently
231
+
232
+ Establish a tag taxonomy at engagement start and stick to it. Consistent tags allow timeline filtering during report generation. Suggested base tags: `discovery`, `credential-access`, `lateral-movement`, `exfiltration`, `persistence`, `scope-change`.
233
+
234
+ ### Attach artifacts whenever possible
235
+
236
+ If a tool produced a file, pass the path via `artifact_path`. The engine will record the file's SHA-256 hash alongside the entry hash, creating a two-layer integrity check on the evidence.
237
+
238
+ ### Chain entries for multi-step findings
239
+
240
+ For findings that unfold across multiple steps (initial discovery, exploitation, impact demonstration), log a `finding` entry at each stage and use the same root tag to group them. The timeline JSONL can later be filtered by tag to reconstruct the kill chain.
241
+
242
+ ### Recovering from missed auto-capture
243
+
244
+ If you realize several steps were not logged (e.g., you ran commands in a separate terminal), log them retroactively using the `detail` field to include approximate timing. The engine stamps entries with the actual invocation time, so note any time offset explicitly in the detail text.
245
+
246
+ ### Verify chain integrity periodically
247
+
248
+ Run the RTExit chain integrity checker against `evidence_chain.log` at the end of each session to confirm no entries were altered or dropped:
249
+
250
+ ```
251
+ python autodoc_engine.py --verify-chain <engagement_dir>/evidence_chain.log
252
+ ```
253
+
254
+ A clean chain returns: `Chain integrity: OK - N entries verified`.
255
+
256
+ ### Do not edit timeline.jsonl or evidence_chain.log manually
257
+
258
+ Manual edits break the hash chain and will cause integrity verification to fail. If an entry contains an error, log a corrective `decision` entry referencing the original entry ID rather than modifying the existing record.