Skip to content
Projekte

sandhiveio/How-Could-I-Be-Hacked

Auf GitHub ansehen

Über uns

Review your PR with security checks from real open-source projects. Your coding agent adapts them to your diff, runs them locally, and shows what they cover beyond your existing tests.

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
+3
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

SandHive How Could I Be Hacked

Security checks from across GitHub for the PR you’re about to ship.

Your coding agent adapts security checks from real open-source reviews to your PR diff and runs them locally. The report shows what those checks covered beyond your test suite, what passed, and what still needs checking.

159 investigation and review steps across 59 anonymized cases. Local search and reports run with Python and SQLite. No API key required.

Review a PR · See example report

Example PR review

ItsDangerous PR #442 added two tests for a change that rejects unexpected keyword arguments. A case from the library prompted the agent to compare the original code with the proposed fix across 12 combinations of serializer, keyword, and input type.

The original code accepted the unexpected arguments in all 12 combinations. The fix rejected them in all 12.

The library helped the reviewer verify that the fix held beyond the two examples in the PR, including when callers passed bytes instead of text.

Read the full review

Quickstart

Install with the Skills CLI.

npx skills add sandhiveio/How-Could-I-Be-Hacked --skill how-could-i-be-hacked

Open the branch you want to review in your coding agent and paste this prompt.

Use $how-could-i-be-hacked to review this branch against main. Show what you checked beyond the existing tests, what needs fixing before merge, and what’s still unverified.

How it works

  1. Read the diff. Identify the security-sensitive behavior the PR changes and record the base and head commits.
  2. Find relevant cases. Search the bundled library and select steps that apply to the changed behavior.
  3. Check locally. Adapt those steps to the PR and record what ran and what happened.
  4. Report the results. Show which checks the library added, what blocks merge, and what remains unchecked.

SandHive reviews a daily selection of public GitHub code and turns useful checks into anonymized cases. Update the skill to get the latest library snapshot.

Workflow diagram · Investigation map

Case catalog

Example What the review checks
Session revocation Whether existing tokens stop working after an account is disabled
Secret redaction in logs Whether application and SDK loggers mask credentials
OIDC group membership Whether group membership is verified before forwarding configured groups
Upload destination containment Whether uploads and direct writes stay within the allowed directory
Release artifact visibility Whether shipped bundles, source maps, and provenance follow the source visibility policy

Full case catalog · Published security review results

Reference

Review a module or repository

Give the skill a module path or the whole repository and name the security behavior you want checked. The report records the revision, scope, findings, results, and gaps. Review guide

Search the library directly

Run from the repository root with Python 3.10+ and SQLite FTS5.

python skills/how-could-i-be-hacked/scripts/corpus.py search --library skills/how-could-i-be-hacked/library --query "credential masking formatter" --limit 5

CLI and report format

Use python scripts/toolkit.py stats to check the installed snapshot or python scripts/toolkit.py verify to check its integrity. Command reference · Report format · Library format

For manual setup, copy the full repository into your agent’s skills directory under how-could-i-be-hacked, or point your agent at SKILL.md.

Offline iteration protocol · Library publication audit

Security and license

Report security or privacy issues through the channel described in the security policy.

SandHive’s original skill, scripts, documentation, and library materials are available under the MIT License. Third-party materials remain subject to their original license terms.

Contact

SandHive on GitHub · SandHive website · @sandhive on Telegram

Ähnliche Projekte entdecken

Wird geladen…