Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

gyulyvgc/sniffnet
main @ 06a249c
3
Fixes
0
CVEs
MEDIUM
Peak severity
33.3%
Coverage
Highlights
Information Disclosure: 1 prior fix. Scrutinize any change in this area.
.github/workflows/package.yml: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: User-supplied or attacker-influenced file names could escape designated folders during the PCAP export process. Sanitization must aggressively filter both forward and backward slashes on all platform-agnostic export actions.
Memory Safety: The use of `unwrap_unchecked` on unpredictable operations like file IO can trigger undefined behavior when assumptions are violated. Rust's native safe error handling (`unwrap` or explicit pattern matching) must be favored over unsafe optimizations.
Information Disclosure: Direct inline interpolation of repository secrets like `NPCAP_OEM_URL` into shell commands within GitHub Actions risks exposing sensitive commercial installers via process trees or runner logs.