Skip to content

feat(scanner): detect malicious WebSocket handlers#81

Open
SINISTER1999 wants to merge 1 commit into
counterspec:mainfrom
SINISTER1999:feat/websocket-threat-detection
Open

feat(scanner): detect malicious WebSocket handlers#81
SINISTER1999 wants to merge 1 commit into
counterspec:mainfrom
SINISTER1999:feat/websocket-threat-detection

Conversation

@SINISTER1999

Copy link
Copy Markdown

feat(scanner): detect malicious WebSocket handler patterns

Closes #3

Summary

  • detect plaintext and commonly abused tunnel WebSocket endpoints
  • detect sensitive data sent through WebSocket .send()
  • detect command execution inside WebSocket message handlers
  • add seven focused positive and negative test cases
  • add a scanner test script using Node's built-in test runner

Detection Coverage

  • suspicious endpoints: ws://, ngrok, requestbin, pipedream, and webhook.site
  • exfiltration: environment variables, credentials/secrets/tokens, and file reads passed to .send()
  • reverse-shell behavior: exec/spawn calls in a WebSocket message handler

Validation

Run from scanner/:

npm test
npm run build

The contribution is static-analysis-only and does not contact or probe external systems.

Bounty Payout

Please confirm the ISNAD chain and claim process. Receiving EVM wallet:

0x21FA0031EDbe23DF5e4B11825ec614018d83080a

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

@pulsesinister is attempting to deploy a commit to the Rapi's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scanner rule for malicious WebSocket handlers

2 participants