Skip to content

Feat/oss forensics skill v2#1066

Closed
zagiscoming wants to merge 9 commits into
NousResearch:mainfrom
zagiscoming:feat/oss-forensics-skill-v2
Closed

Feat/oss forensics skill v2#1066
zagiscoming wants to merge 9 commits into
NousResearch:mainfrom
zagiscoming:feat/oss-forensics-skill-v2

Conversation

@zagiscoming

@zagiscoming zagiscoming commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Closes #384
Clean follow-up to the previously closed PR, addressing all reviewer feedback:

  • No merge conflicts - branch opened cleanly from main
    • No core tool changes - zero modifications to tools/, AGENTS.md, or README.md
    • Correct placement - optional-skills/security/oss-forensics/ (Skills Hub, not built-in)
    • Depth - SKILL.md expanded to a 7-phase investigation framework (365 lines) with 8 anti-hallucination guardrails

Changes Made

  • Added OSS Security Forensics Skill to optional-skills/security/oss-forensics/
    • 7 new files, zero changes to core tools, AGENTS.md, or README.md

How to Test

  1. Run python optional-skills/security/oss-forensics/scripts/evidence-store.py --help to verify the CLI works
    1. Follow Phase 0-1 in SKILL.md to initialize an investigation directory and evidence store
    1. Use evidence-store.py add to log a test entry, then verify to confirm SHA-256 integrity

Checklist

  1. No merge conflicts (branch opened from clean main)
  2. 2. [x] No core tool changes (tools/, AGENTS.md, README.md untouched)
  3. 3. [x] Correct placement: optional-skills/ not skills/ (Skills Hub per issue recommendation)
  4. 4. [x] Skill depth: 365-line SKILL.md with 7-phase framework and 8 anti-hallucination guardrails
  5. 5. [x] evidence-store.py tested and working (add/list/verify/summary commands)

Files Added

File Description
SKILL.md 7-phase RAPTOR-inspired forensics framework with anti-hallucination guardrails
scripts/evidence-store.py Evidence CLI with add/list/verify/query/export/summary + SHA-256 integrity
references/evidence-types.md IOC taxonomy, 12 GH Archive event types, verification states
references/recovery-techniques.md 4 methods for recovering force-pushed commits and deleted content
references/github-archive-guide.md BigQuery query patterns with mandatory cost controls
references/investigation-templates.md 5 pre-built hypothesis templates for supply chain attacks
templates/forensic-report.md Structured report with chain of custody and evidence registry

zagiscoming and others added 9 commits March 3, 2026 23:10
- Introduces 'role' parameter to delegate_task for sub-agent persona switching
- Adds HERMES_HOME documentation for running multiple Gateway instances
- Fixes upstream bug in os.setsid causing native exceptions on Windows
- Implements a forensic investigation framework for supply chain attacks
- Adds specialized investigators: Git, GitHub API, and Archive
- Includes evidence-store helper and forensic report templates
- Adds comprehensive documentation on recovery techniques and attack patterns
Adds a 7-phase multi-agent forensics skill under optional-skills/security/oss-forensics/
following the feedback from the closed PR and RAPTOR's investigation framework.

Changes:
- SKILL.md: Full 7-phase investigation framework (Phase 0-7), per-investigator
  role boundaries, and 8 anti-hallucination guardrails (365 lines)
- scripts/evidence-store.py: Evidence management CLI with add/list/verify/
  query/export/summary commands, SHA-256 integrity checks, and chain-of-custody
  logging (v2 — expanded from original 78 lines)
- references/evidence-types.md: Taxonomy of 8 evidence source types, 14 IOC
  types, all 12 GH Archive event types, and verification states
- references/recovery-techniques.md: 4 methods for recovering force-pushed
  commits, deleted issues/PRs; failure modes and evidence recording workflow
- references/github-archive-guide.md: BigQuery query patterns for all
  key forensic scenarios with mandatory dry-run cost controls
- references/investigation-templates.md: Pre-built hypothesis templates
  for 5 common supply chain attack patterns
- templates/forensic-report.md: Structured report template with executive
  summary, timeline, validated hypotheses, IOC list, evidence registry,
  chain of custody, and recommendations

Placement: optional-skills/ (Skills Hub) not skills/ (built-in).
No changes to core tools, AGENTS.md, or README.md.

Closes NousResearch#384
teknium1 pushed a commit that referenced this pull request Mar 16, 2026
Salvaged from PR #1066 by zagiscoming. Adds a 7-phase multi-agent
investigation framework for GitHub supply chain attack forensics.

Skill contents (optional-skills/security/oss-forensics/):
- SKILL.md: 420-line investigation framework with 8 anti-hallucination
  guardrails, 5 specialist investigators, ethical use guidelines,
  and API rate limiting guidance
- evidence-store.py: CLI evidence manager with add/list/verify/query/
  export/summary + SHA-256 integrity + chain of custody
- references/: evidence types, GH Archive BigQuery guide (expanded with
  12 event types and 6 query templates), recovery techniques (4 methods),
  investigation templates (5 attack patterns)
- templates/: forensic report template (151 lines), malicious package
  report template

Changes from original PR:
- Dropped unrelated core tool changes (delegate_tool.py role parameter,
  AGENTS.md, README.md modifications)
- Removed duplicate skills/security/oss-forensics/ placement
- Fixed github-archive-guide.md (missing from optional-skills/, expanded
  from 33 to 160+ lines with all 12 event types and query templates)
- Added ethical use guidelines and API rate limiting sections
- Rewrote tests to match the v2 evidence store API (12 tests, all pass)

Closes #384
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #1482. Your substantive skill content (SKILL.md, evidence-store.py, reference docs, templates) was cherry-picked onto current main with your authorship preserved.

Changes in the salvage PR: dropped the unrelated delegate_tool.py role parameter, AGENTS.md, and README.md changes (those should be separate PRs if desired), removed the duplicate skills/ placement, expanded the GitHub Archive guide, added ethical use guidelines + API rate limiting sections, and rewrote the tests to match the v2 evidence store API. Thanks for the thorough work on this — the investigation framework and evidence store are solid.

@teknium1 teknium1 closed this Mar 16, 2026
teknium1 added a commit that referenced this pull request Mar 16, 2026
* feat: add OSS Security Forensics skill (Skills Hub)

Salvaged from PR #1066 by zagiscoming. Adds a 7-phase multi-agent
investigation framework for GitHub supply chain attack forensics.

Skill contents (optional-skills/security/oss-forensics/):
- SKILL.md: 420-line investigation framework with 8 anti-hallucination
  guardrails, 5 specialist investigators, ethical use guidelines,
  and API rate limiting guidance
- evidence-store.py: CLI evidence manager with add/list/verify/query/
  export/summary + SHA-256 integrity + chain of custody
- references/: evidence types, GH Archive BigQuery guide (expanded with
  12 event types and 6 query templates), recovery techniques (4 methods),
  investigation templates (5 attack patterns)
- templates/: forensic report template (151 lines), malicious package
  report template

Changes from original PR:
- Dropped unrelated core tool changes (delegate_tool.py role parameter,
  AGENTS.md, README.md modifications)
- Removed duplicate skills/security/oss-forensics/ placement
- Fixed github-archive-guide.md (missing from optional-skills/, expanded
  from 33 to 160+ lines with all 12 event types and query templates)
- Added ethical use guidelines and API rate limiting sections
- Rewrote tests to match the v2 evidence store API (12 tests, all pass)

Closes #384

* fix: use python3 and SKILL_DIR paths throughout oss-forensics skill

- Replace all 'python' invocations with 'python3' for portability
  (Ubuntu doesn't ship 'python' by default)
- Replace relative '../scripts/' and '../templates/' paths with
  SKILL_DIR/scripts/ and SKILL_DIR/templates/ convention
- Add path convention note before Phase 0 explaining SKILL_DIR
- Fix double --- separator (cosmetic)
- Applies to SKILL.md, evidence-store.py docstring,
  recovery-techniques.md, and forensic-report.md template

---------

Co-authored-by: zagiscoming <zagiscoming@users.noreply.github.com>
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
* feat: add OSS Security Forensics skill (Skills Hub)

Salvaged from PR NousResearch#1066 by zagiscoming. Adds a 7-phase multi-agent
investigation framework for GitHub supply chain attack forensics.

Skill contents (optional-skills/security/oss-forensics/):
- SKILL.md: 420-line investigation framework with 8 anti-hallucination
  guardrails, 5 specialist investigators, ethical use guidelines,
  and API rate limiting guidance
- evidence-store.py: CLI evidence manager with add/list/verify/query/
  export/summary + SHA-256 integrity + chain of custody
- references/: evidence types, GH Archive BigQuery guide (expanded with
  12 event types and 6 query templates), recovery techniques (4 methods),
  investigation templates (5 attack patterns)
- templates/: forensic report template (151 lines), malicious package
  report template

Changes from original PR:
- Dropped unrelated core tool changes (delegate_tool.py role parameter,
  AGENTS.md, README.md modifications)
- Removed duplicate skills/security/oss-forensics/ placement
- Fixed github-archive-guide.md (missing from optional-skills/, expanded
  from 33 to 160+ lines with all 12 event types and query templates)
- Added ethical use guidelines and API rate limiting sections
- Rewrote tests to match the v2 evidence store API (12 tests, all pass)

Closes NousResearch#384

* fix: use python3 and SKILL_DIR paths throughout oss-forensics skill

- Replace all 'python' invocations with 'python3' for portability
  (Ubuntu doesn't ship 'python' by default)
- Replace relative '../scripts/' and '../templates/' paths with
  SKILL_DIR/scripts/ and SKILL_DIR/templates/ convention
- Add path convention note before Phase 0 explaining SKILL_DIR
- Fix double --- separator (cosmetic)
- Applies to SKILL.md, evidence-store.py docstring,
  recovery-techniques.md, and forensic-report.md template

---------

Co-authored-by: zagiscoming <zagiscoming@users.noreply.github.com>
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
* feat: add OSS Security Forensics skill (Skills Hub)

Salvaged from PR NousResearch#1066 by zagiscoming. Adds a 7-phase multi-agent
investigation framework for GitHub supply chain attack forensics.

Skill contents (optional-skills/security/oss-forensics/):
- SKILL.md: 420-line investigation framework with 8 anti-hallucination
  guardrails, 5 specialist investigators, ethical use guidelines,
  and API rate limiting guidance
- evidence-store.py: CLI evidence manager with add/list/verify/query/
  export/summary + SHA-256 integrity + chain of custody
- references/: evidence types, GH Archive BigQuery guide (expanded with
  12 event types and 6 query templates), recovery techniques (4 methods),
  investigation templates (5 attack patterns)
- templates/: forensic report template (151 lines), malicious package
  report template

Changes from original PR:
- Dropped unrelated core tool changes (delegate_tool.py role parameter,
  AGENTS.md, README.md modifications)
- Removed duplicate skills/security/oss-forensics/ placement
- Fixed github-archive-guide.md (missing from optional-skills/, expanded
  from 33 to 160+ lines with all 12 event types and query templates)
- Added ethical use guidelines and API rate limiting sections
- Rewrote tests to match the v2 evidence store API (12 tests, all pass)

Closes NousResearch#384

* fix: use python3 and SKILL_DIR paths throughout oss-forensics skill

- Replace all 'python' invocations with 'python3' for portability
  (Ubuntu doesn't ship 'python' by default)
- Replace relative '../scripts/' and '../templates/' paths with
  SKILL_DIR/scripts/ and SKILL_DIR/templates/ convention
- Add path convention note before Phase 0 explaining SKILL_DIR
- Fix double --- separator (cosmetic)
- Applies to SKILL.md, evidence-store.py docstring,
  recovery-techniques.md, and forensic-report.md template

---------

Co-authored-by: zagiscoming <zagiscoming@users.noreply.github.com>
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
* feat: add OSS Security Forensics skill (Skills Hub)

Salvaged from PR NousResearch#1066 by zagiscoming. Adds a 7-phase multi-agent
investigation framework for GitHub supply chain attack forensics.

Skill contents (optional-skills/security/oss-forensics/):
- SKILL.md: 420-line investigation framework with 8 anti-hallucination
  guardrails, 5 specialist investigators, ethical use guidelines,
  and API rate limiting guidance
- evidence-store.py: CLI evidence manager with add/list/verify/query/
  export/summary + SHA-256 integrity + chain of custody
- references/: evidence types, GH Archive BigQuery guide (expanded with
  12 event types and 6 query templates), recovery techniques (4 methods),
  investigation templates (5 attack patterns)
- templates/: forensic report template (151 lines), malicious package
  report template

Changes from original PR:
- Dropped unrelated core tool changes (delegate_tool.py role parameter,
  AGENTS.md, README.md modifications)
- Removed duplicate skills/security/oss-forensics/ placement
- Fixed github-archive-guide.md (missing from optional-skills/, expanded
  from 33 to 160+ lines with all 12 event types and query templates)
- Added ethical use guidelines and API rate limiting sections
- Rewrote tests to match the v2 evidence store API (12 tests, all pass)

Closes NousResearch#384

* fix: use python3 and SKILL_DIR paths throughout oss-forensics skill

- Replace all 'python' invocations with 'python3' for portability
  (Ubuntu doesn't ship 'python' by default)
- Replace relative '../scripts/' and '../templates/' paths with
  SKILL_DIR/scripts/ and SKILL_DIR/templates/ convention
- Add path convention note before Phase 0 explaining SKILL_DIR
- Fix double --- separator (cosmetic)
- Applies to SKILL.md, evidence-store.py docstring,
  recovery-techniques.md, and forensic-report.md template

---------

Co-authored-by: zagiscoming <zagiscoming@users.noreply.github.com>
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
* feat: add OSS Security Forensics skill (Skills Hub)

Salvaged from PR NousResearch#1066 by zagiscoming. Adds a 7-phase multi-agent
investigation framework for GitHub supply chain attack forensics.

Skill contents (optional-skills/security/oss-forensics/):
- SKILL.md: 420-line investigation framework with 8 anti-hallucination
  guardrails, 5 specialist investigators, ethical use guidelines,
  and API rate limiting guidance
- evidence-store.py: CLI evidence manager with add/list/verify/query/
  export/summary + SHA-256 integrity + chain of custody
- references/: evidence types, GH Archive BigQuery guide (expanded with
  12 event types and 6 query templates), recovery techniques (4 methods),
  investigation templates (5 attack patterns)
- templates/: forensic report template (151 lines), malicious package
  report template

Changes from original PR:
- Dropped unrelated core tool changes (delegate_tool.py role parameter,
  AGENTS.md, README.md modifications)
- Removed duplicate skills/security/oss-forensics/ placement
- Fixed github-archive-guide.md (missing from optional-skills/, expanded
  from 33 to 160+ lines with all 12 event types and query templates)
- Added ethical use guidelines and API rate limiting sections
- Rewrote tests to match the v2 evidence store API (12 tests, all pass)

Closes NousResearch#384

* fix: use python3 and SKILL_DIR paths throughout oss-forensics skill

- Replace all 'python' invocations with 'python3' for portability
  (Ubuntu doesn't ship 'python' by default)
- Replace relative '../scripts/' and '../templates/' paths with
  SKILL_DIR/scripts/ and SKILL_DIR/templates/ convention
- Add path convention note before Phase 0 explaining SKILL_DIR
- Fix double --- separator (cosmetic)
- Applies to SKILL.md, evidence-store.py docstring,
  recovery-techniques.md, and forensic-report.md template

---------

Co-authored-by: zagiscoming <zagiscoming@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: OSS Security Forensics Skill — Supply Chain Investigation, Evidence Recovery, and Forensic Analysis (inspired by RAPTOR)

2 participants