external/trailofbits-security/open-sourcing/skills/open-sourcing/SKILL.md
This skill should be used when the user asks to "open source this project", "prepare this repository for public release", "make this repo public", "check open-source readiness", "choose a license for this project", or "set up release automation" ahead of a public launch. Provides a release-readiness workflow covering secrets hygiene, licensing, documentation, CI, and language-specific packaging.
npx skillsauth add seikaikyo/dash-skills open-sourcingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Prepare a repository for public release so that an outsider with no prior context can build, use, and contribute to it — and so that nothing sensitive ships with it. Work through the steps in order; the secrets audit comes first because its outcome (keeping vs. recreating the repository) affects everything after it.
bash {baseDir}/scripts/detect_org.sh
The script inspects git remotes and recent committer emails, and prints a
profile name. If it prints trailofbits, read
references/trailofbits.md now and apply its
license policy, publishing accounts, and process notes throughout the
remaining steps. If it prints generic, proceed with the generic guidance
alone. If the user says the detection is wrong, trust the user.
A repository that has ever contained secrets (API keys, credentials, client data) should not be flipped public. History rewriting is error-prone and does not reach forks, caches, or CI artifacts. The reliable fix is a fresh repository: copy the current tree over, commit, and archive the old repository privately.
gitleaks git . or trufflehog git file://. — rather than eyeballing.Reject these rationalizations — this is the one step that cannot be fixed after publication:
bash {baseDir}/scripts/check_readiness.sh
The script prints a checklist of presence indicators (README, LICENSE, CONTRIBUTING, SECURITY.md, CI, tests, semver tags, ...) and warns about tracked files that commonly contain secrets. Treat unchecked items as discussion prompts, not hard failures — a research prototype does not need everything a flagship library needs. Walk through the gaps with the user and fix the ones that matter for this project.
The README is the project's front door. Confirm it explains:
CONTRIBUTING.mdAlso add:
SECURITY.md with vulnerability-reporting instructions (a contact
address or GitHub private vulnerability reporting). For security tooling
this is table stakes.No license means not open source, regardless of visibility. Read references/licensing.md for selection criteria and mechanics. The short version:
LICENSE file, set SPDX identifiers in package metadata, state
the license in the README, and verify all three agree.github-actions so pins stay current.permissions: blocks (start from permissions: {}).zizmor .github/workflows/ and lint with actionlint..editorconfig so contributors' editors agree on whitespace basics.C: component, P: platform). See
blight's labels for a
worked example.vX.Y.Z, following semver; use
-rc.N / -pre.N suffixes for release candidates and prereleases.git tag vX.Y.Z && git push origin vX.Y.Z.Identify the project's languages from its marker files and read the matching reference for packaging, publishing, and quality tooling:
| Marker file | Reference |
|-------------|-----------|
| pyproject.toml, setup.py | references/python.md — defers to the modern-python skill for tooling |
| CMakeLists.txt, Makefile (C/C++) | references/c-cpp.md |
| Cargo.toml | references/rust.md |
| go.mod | references/go.md |
| package.json | references/javascript.md |
| Gemfile, *.gemspec | references/ruby.md |
For other ecosystems, apply the cross-cutting principles: reproducible builds from a fresh clone, CI-driven releases, trusted publishing or organization-owned accounts, and license metadata in the package manifest.
Before the visibility switch is flipped, verify from an outsider's perspective:
{baseDir}/scripts/check_readiness.sh and confirm the remaining
gaps are deliberate choices, stated to the user.Making the repository public is then a repository-settings change. Pair the release with an announcement where the organization has a process for one.
scripts/detect_org.sh — prints the organization profile
(trailofbits or generic) from git remotes and committer emailsscripts/check_readiness.sh — prints presence indicators for
release-readiness files and flags tracked files that commonly hold secretstools
Conduct comprehensive GDPR compliance assessments by evaluating data processing activities against EU Regulation 2016/679, including Article 30 records of processing, lawful basis validation, data subject rights implementation, Data Protection Impact Assessments (DPIAs) under Article 35, breach notification procedures, international transfer safeguards (SCCs, adequacy decisions), and technical/organizational measures under Article 32. Use when processing personal data of EU residents, preparing for supervisory authority audits, implementing privacy-by-design for new systems, scoping compliance gaps for M&A due diligence, assessing third-party processors, or responding to data subject access requests at scale. Incorporates 2026 guidance from ICO, EDPB, and post-Data (Use and Access) Act 2025 UK-GDPR considerations. Do not use for implementing specific Article 32 controls — use implementing-gdpr-data-protection-controls; or for DSAR automation — use implementing-gdpr-data-subject-access-request.
tools
Parse Windows forensic artifacts—$MFT/$J (MFTECmd), Prefetch (PECmd), registry hives (RECmd), shellbags, and Amcache—into normalized CSV/JSON with Eric Zimmerman's EZ Tools, then load results into Timeline Explorer for analysis. Use during DFIR/incident-response investigations, after triage collection (e.g. with KAPE), to establish program execution, file/folder access, and persistence evidence from acquired forensic images.
development
Build automated multi-turn adversarial attacks against conversational LLM targets using Microsoft PyRIT's RedTeamingOrchestrator, CrescendoOrchestrator (gradual escalation), and TreeOfAttacksWithPruningOrchestrator (adaptive branching), with scorer feedback loops and persisted conversation memory. Use when single-shot LLM scanning is insufficient and you need multi-turn, scorer-driven AI red-team campaigns against a chatbot or agent.
testing
Stand up MISP, enable and cache curated threat feeds (CIRCL, abuse.ch, Feodo Tracker), apply warninglists to suppress false positives, query indicators with PyMISP, and export attributes as auto-generated Suricata/Sigma/Wazuh detection rules. Use when maturing a MISP instance to actively drive detection, curating threat feeds with quality controls, or automating IOC-to-detection pipelines for the SIEM/IDS.