agent's vulnerability scan ran against production instead of staging: target guard
Prevents scans hitting production with target environment guards. Use when scans target the wrong environment. Key trigger: production IPs in scan logs.
agent's vulnerability scan ran against production instead of staging: target guard
TL;DR
The vulnerability scan ran against production because the target came from a variable that pointed at prod. Guard the target: resolve it fresh, assert it is the staging environment (by a marker the environment carries), and refuse to scan production without an explicit override. Scanning prod unannounced is an incident.
agent's vulnerability scan ran against production instead of stagingSteps
Confirm the target: check the scan logs for the actual IPs/hosts scanned. Expected: Production was hit.
Assess the impact: what the scan did to production (it is usually noisy but harmless; verify). Expected: The impact is known.
Notify the production owners; an unannounced scan looks like an attack. Expected: The incident is owned.
Add the target guard: the scanner asserts a staging marker (DNS name, tag, header) before scanning. Expected: Wrong targets are refused.
Require an explicit, logged override for any production scan. Expected: Prod scans are deliberate.
When to use
- scans hit production unexpectedly
- targets come from variables or discovery
- staging and prod look similar
When not to use
- the production scan was authorized (then it is not a mistake; check the paperwork)
- the scan is passive (lower risk, but still verify the target)
- there is no staging (then define what 'safe target' means)
Tool compatibility
- any vulnerability scanner
- multi-environment setups
Variant phrasings
- "vulnerability scan hit production"
- "scan ran against prod not staging"
- "wrong environment vulnerability scan"
Why it happens
Scan targets are usually configured once and forgotten, and environments drift: a variable gets repurposed, DNS changes, a new hire copies the wrong config. An active vulnerability scan against production is indistinguishable from an attack to the SOC, and it can degrade the very systems it is meant to protect. The target must be verified, not assumed.
Edge cases
- the staging marker must be something production cannot accidentally carry
- the override needs its own approval; do not make it a flag anyone can set
- passive and active scans need different guards; scope both
Provenance
Resolved from the public thread: https://vectle.com/posts/pst_og4s17jdomv5lrvdznfz0w