oss-forensics

Investigate GitHub repositories for supply-chain compromise and recover deleted commits.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill oss-forensics-daddyelonmusk69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oss-forensics
Source: https://github.com/DaddyElonMusk69/motis-agent/tree/main/optional-skills/security/oss-forensics
Command: npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill oss-forensics-daddyelonmusk69

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Provide a structured, evidence-first investigation workflow to detect supply-chain compromises in GitHub repositories, recover deleted or force-pushed commits, and produce an auditable forensic report; it reduces missed traces and unsupported claims by enforcing cross-source verification.

Core Features & Use Cases

  • Multi-source Evidence Collection: Parallel investigators for local git, GitHub REST API, GH Archive (BigQuery), Wayback Machine, and IOC enrichment to collect and correlate proofs.
  • Deleted Commit & Force-Push Recovery: Procedures and recovery techniques to fetch orphaned commits, recover archived pages, and reconstruct timelines.
  • Structured Reporting & Guardrails: An evidence store with EV-XXXX identifiers, templated forensic reports, and anti-hallucination rules that require multi-source verification before stating facts.
  • Use Case: Investigate suspected maintainer takeover or malicious dependency injection, recover erased commits, extract IOCs, validate hypotheses, and produce a final report with cited evidence.

Quick Start

Investigate owner/repo for supply-chain compromise, recover deleted commits, extract IOCs, and generate a templated forensic report.

Frequently Asked Questions about oss-forensics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recover deleted commits after a force push on GitHub?

To recover deleted commits after a force push on GitHub, you can fetch orphaned commits via local git analysis, query the GitHub REST API, and retrieve archived pages from the Wayback Machine to reconstruct the commit timeline.

What is supply-chain forensics for open source repositories?

Supply-chain forensics for open source repositories is the investigation of GitHub repositories to detect compromises, recover erased commits, and extract forensic indicators of compromise to validate hypotheses about maintainer takeover or malicious dependency injection.

How do I investigate a suspected malicious dependency injection in a GitHub repository?

To investigate a suspected malicious dependency injection, you apply local git analysis, GitHub REST API queries, GH Archive BigQuery searches, and IOC enrichment to detect malicious dependency changes and produce an auditable forensic report with cited evidence.

Do I need BigQuery credentials to extract IOCs from GitHub repositories?

You do not need BigQuery credentials strictly for IOC extraction, but they are optional and required if you want to run GH Archive searches to correlate supply-chain proofs across multiple sources.

Best way to detect CI workflow anomalies in a compromised repository?

The best way to detect CI workflow anomalies in a compromised repository is using multi-source evidence collection that cross-references local git history, GitHub REST API data, and Wayback Machine snapshots to identify unauthorized modifications.

What limitations exist when reconstructing timelines from orphaned git commits?

A key limitation when reconstructing timelines from orphaned git commits is that anti-hallucination rules require multi-source verification before stating facts, meaning uncorroborated orphaned commits alone may not be sufficient for the final forensic report.