agent-session-monitor
Audited by Socket on Oct 10, 2026
2 alerts found:
Securityx2No clear malware behavior is present. The code is a session-monitoring web server, but its unauthenticated network exposure, wildcard CORS, unvalidated session-id file path, and incomplete HTML escaping can expose private session data or enable file reads and XSS. Restrict network access, validate session IDs and file containment, and escape every value inserted into HTML.
No clear malware behavior is evident. However, log-controlled session IDs are used unsafely to construct output filenames, allowing path traversal and file overwrite if an attacker can influence the parsed logs. The code also persists conversation content in plaintext. The undefined epilog variable causes a startup error in the supplied fragment.