You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Detection gap: code that posts environment variables to a URL #33
SAFE. SG-002 only flags os.environ when a specific key name such as API_KEY is read, and only flags HTTP calls built with string concatenation.
What done looks like
SG-002 flags whole-environment access (os.environ as a whole, dict(os.environ), os.environ.copy(), process.env in JavaScript) passed to an HTTP call (requests.post, httpx.post, urllib, fetch(, axios.post).
10-python-exfil passes in tests/test_redteam.py; remove it from KNOWN_GAPS.
At least one JavaScript true positive (fetch(url, {method: "POST", body: JSON.stringify(process.env)})) and a near-miss: os.environ.get("HOME") on its own must not be flagged.
Where to start: _EXFIL_PATTERNS in src/skillshield/rules.py.
Before you start, read CONTRIBUTING.md, especially "Adding or changing a detection rule" and "Test samples must be safe". Comment here to claim the issue.
Activity
Keep single-variable reads out of the SG-002 wrappers and show the ma…
Skip optional-chained process.env reads and find the line from the wh…
Flag the whole environment sent over HTTP in SG-002 (obielin#33)
Keep single-variable reads out of the SG-002 wrappers and show the ma…
Skip optional-chained process.env reads and find the line from the wh…
feat: SG-002 flags code that sends the whole environment over HTTP (#90)