[bug] Vigil SECURITY_TEXT misses "key leaked": a leaked-credential alert is held in…

Open Beginner friendly
#2,938 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
security

Research direction

Start in LIFEOS/VIGIL/Route.ts around line 86, where the leak branch of jobClass matches leaked (key|token|credential)s?, and read the surrounding ALWAYS_SEND logic at line 85. Reproduce the three cases from the issue through jobClass(id, text) and jobRoute(..., { policy: DEFAULT_POLICY, quiet: true }), then broaden the regex to accept noun-first orders. Done when both leaked-credential phrasings return security/text and the control plus non-credential phrases still do not match.

Written by the indexing model from the issue text.

Description

What happened

Vigil does not treat 'API key leaked' as a security alert; only 'leaked key' word order is caught, so the alert is held in quiet hours

Summary

LIFEOS/VIGIL/Route.ts:86 matches the leak branch only as leaked (key|token|credential)s?, i.e. the adjective before the noun. The natural report order puts the noun first, so jobClass returns ops and jobRoute holds it during quiet hours, although security is in ALWAYS_SEND (Route.ts:85).

Repro with jobClass(id, text) + jobRoute([...], { policy: DEFAULT_POLICY, quiet: true, ... }):

  • "Our API key leaked, rotate it now" -> class ops, action held (expected security / text)
  • "A token was leaked in the logs" -> class ops, action held (expected security / text)
  • control: "Leaked key found in the repo" -> security / text

Suggested fix: accept both orders, e.g. leaked (key|token|credential|secret|password)s?|(key|token|credential|secret|password)s? (is |are |was |were |has been |have been |got )?leaked. It still does not match "The keyboard leaked water".

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

Dominant language
TypeScript
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from danielmiessler/LifeOS

All issues in danielmiessler/LifeOS

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.