Purpose How-Could-I-Be-Hacked is used to supplement security review before code is merged. Aimed at coding agents, it applies security check steps drawn from reviews of real open-source projects to the code diff of the current PR, helping developers understand what is checked beyond existing tests, which issues need fixing, and what remains unverified.
Key capabilities
- Built-in case library: the materials state it contains 59 anonymized cases and 159 investigation and review steps, derived from SandHive's daily screening and organization of public GitHub code.
- Diff adaptation: the agent reads the diff, identifies security-sensitive behaviors changed by the PR, and records the base and head commits.
- Case retrieval: searches the bundled library for steps related to the changed behavior.
- Local execution: adapts the selected check steps to the current PR and runs them locally, recording what was executed and the results.
- Results report: shows which checks the library adds, which issues block merging, and which remain unchecked.
- Local search and reporting: uses Python and SQLite, with no API key required.
How to use The materials give installation via the Skills CLI. Then, in the coding agent, open the branch to review, paste the prompt, and ask it to use $how-could-i-be-hacked to review that branch against main and explain what is checked beyond existing tests, what needs fixing before merge, and what remains unverified. You can also give the skill a module path or the whole repository and specify the security behaviors to check.
To search the library directly, run it from the repository root; the environment requires Python 3.10+ and SQLite FTS5. Use python scripts/toolkit.py stats to view the installed snapshot, and python scripts/toolkit.py verify to check integrity. For manual setup, you can copy the full repository into the agent's skills directory under the name how-could-i-be-hacked, or point the agent to SKILL.md.
Use cases Suitable for supplementary security review before submitting a PR, especially when you want to use real open-source review experience to check behaviors not covered by tests. The examples in the materials show that the skill can prompt the agent to validate a fix across multiple combinations, such as comparing 12 combinations of serializers, keywords, and input types.
Limitations The materials do not provide the specific range of supported programming languages, a complete list of checks, report format details, performance data, or integration methods with other tools. The case library is anonymized; to get the latest snapshot, the skill must be updated. Security or privacy issues should be reported through the channels described in the security policy. The original skill, scripts, documentation, and library materials are under the MIT License, while third-party materials remain subject to their original license terms.