stream-security-audit
SDK security audit
An SDK is code that runs inside other people's apps, with those apps' privileges, data and users. One flaw ships to every integrator, and integrators rarely read SDK internals, so they inherit its defaults. Audit with that in mind: the question is always "what can an attacker do to an app, or its users, because it embeds this SDK?"
The output is a calibrated report of security vulnerabilities: things an attacker can do to the app, its users or their data because the app embeds this SDK. Performance, compliance, code quality and product choices with no attacker are not findings; drop them, or give them one line under "Reviewed and rejected". Every finding is traced from an attacker-controlled source to a sink in code that actually ships. Every finding states separately what was proven and what still depends on the backend, the integration or the platform. A short list of real issues is worth far more than a long list of grep hits. Overclaims cost the team's trust in the whole report, and so do false positives.
Ground rules
- Read-only by default. Don't modify the repo, push, open issues or PRs, or comment publicly. Vulnerability details in a public tracker before a fix are a disclosure. Fixes are a separate step the user asks for.
- No live attacks. Don't send exploit traffic to production services or third parties. Verify with code reading, unit tests, local harnesses, a local mock server, or a development backend the owner points you to.
- Protect the audit's own evidence.
- Work with
umask 077, in a scratch directory outside the repository. - Put the report outside the repo (or in a gitignored path) and tell the user where it is.
- Recon output masks secret values by default. Never copy a real token, key or password into notes, the report or a sub-agent prompt. Refer to it by type, location and fingerprint.
- At the end, decide what to keep: a private evidence folder next to the report, or nothing. Delete dependency checkouts, build products and derived data you no longer need.
- If the repo has a
SECURITY.md, note its disclosure channel in the report.
- Work with
- Stay inside the agreed scope. Dependencies count when the SDK relies on them. First-party dependencies (the vendor's own core, networking or UI libraries) often hold the riskiest code: transport, auth, decoding, logging. Check them out at the exact resolved revision from the lock file into scratch; local package caches are often several versions stale.
- Other private repositories need the user's say-so. Server source can turn a conditional finding into a confirmed one without touching production, but reading a separate private repository (the backend, internal tools) widens the audit. Read it only when the user has put it in scope, or after asking. Record its commit for every claim that relies on it.