Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,81 @@ under `[Unreleased]` from here.

### Fixed

- **Weekly detection review #351: `/identity` anchored, three token-creation rules get
`filter_ci`, 4698 LOLBins gated, `' stop '` aligned, Harbor retitled; four proposals
declined in the rules (#351).** The review found no coverage holes and ten scoping
calls. Each was checked against the rule body, the gates and the fixtures before being
adopted or declined; a decline that lives only in a closed issue gets re-proposed next
cycle, so every decline below is recorded in the rule it concerns.
- `linux/ssh_private_key_read`: `name|contains: '/identity'` matched every read under a
directory whose name begins `identity` (`~/identity-service/config.yml`), a standing
false-positive stream on a `high` rule. The SSHv1 key now has its own
`name|endswith: '/.ssh/identity'` selection (a `contains` would still take
`~/.ssh/identity-service/`), proven by a single-event row; the true-negative fixture
gains both near-misses.
- `cloudflare/cloudflare_api_token_created`, `terraform/tfc_token_backdoor`,
`gitlab/gitlab_token_backdoor`: each shipped `condition: selection` while its folder
siblings carried a `DEPLOY-REQUIRED` `filter_ci`, and each selects an action the IaC
provider performs on every apply (`cloudflare_api_token`, `tfe_team_token`,
`gitlab_personal_access_token`). Each now carries the sibling's stub on the sibling's
actor field (GitLab, first in its folder, on the streamed event's top-level
`author_name`, with `author_id` named as the stricter form), a `_ci_suppressed`
manifest row proving the stub suppresses, and a deploy-time README row.
`cloud/aws_login_profile_created` is declined in-rule: actor ≠ target is the triage
criterion, `medium` is a triage surface, and an automation minting console passwords
is itself worth seeing.
- `cloud/entra_illicit_consent_grant`: the `filter_known_apps` comment and
`falsepositives` now say that an unanchored `TargetResources|contains` allowlist hides
a grant to a different app whenever a sanctioned id appears anywhere in the event, and
name the two Sentinel paths to anchor on (`TargetResources[0].id` is the SP object id;
the app id sits in `TargetId.ServicePrincipalNames`). Comment-only; nothing compiled
changes.
- `lateral_movement/rdp_hijack_tscon_4688`: declined, and the description now says which
arm sees which channel. The review read the arms the other way round: the `/dest:`
`selection` arm is deliberately not Image-pinned (the sc-create and `cmd /c` wrappers
carry the string in their own command lines) and reads a field both channels carry, so
the SYSTEM-via-service variant is covered on 4688 and Sysmon alike; the Sysmon-only
`as_system` arm is the no-`/dest` interactive form, as its comment already said.
`mstsc /shadow` is named as a different technique, out of scope.
- `persistence/scheduled_task_suspicious_4698`: `\regsvr32.exe` and `\rundll32.exe` fired
at `high` as bare substrings while the same rule had removed `\Users\` and `\Temp\` for
being too common. They now require a co-occurring attacker-controlled target (URL or
scriptlet, UNC path, user-writable directory); `mshta` stays bare. Two traps found on
the way and written into the block: a bare `http` matches the `<Task xmlns="http://…">`
root of every real 4698 and would have collapsed the AND (the synthetic fixtures omit
the root, so no gate saw it — the new TN carries it), and a UNC prefix is `'\\\\'`
because `\` is Sigma's escape. Neither LOLBin had a fixture before; three single-event
TP rows and a dedicated TN file are added, because an aggregate TP passes when any
event fires and would not have caught these arms going silent.
- `lateral_movement/passthehash_4624_fanout`: `filter_machine` is a coverage decision,
not only a noise filter — reuse of a captured machine-account hash never reaches the
count. Stated in the base rule with why Sigma cannot narrow it (no field-to-field
compare of `TargetUserName` against the source host).
- `impact/service_stop_burst`: `' stop'` → `' stop '` on the net and sc arms, the anchor
`service_stop_protected_services` already used; a bare `' stop'` also matched
`' stopped'` and padded the distinct-CommandLine burst. Cmdlet-arm anchoring is declined
in the rule: a piped `| Stop-Service` carries no trailing target. The precedence
allowlist row is re-traced.
- `impact/account_access_removal_4725`: declined in-rule. 4724 is pooled with 4725/4726
because resetting a responder's password locks them out as surely as disabling them;
the org-wide forced reset that trips the pool is what `filter_identity_admins` exists
to name, and a lower-priority 4724 arm would hide the attacker who only resets.
- `registry/harbor_image_pushed_trusted_tag`: retitled *Harbor artifact push or tag
create (supply-chain triage surface)* to match the logic (every push and tag create
minus the CI robot). A protected-repo selector is declined in-rule: a selection-side
list is inert until filled, the opposite failure from a noisy filter. File name,
manifests and htpx pairing are unchanged.
- `google_workspace/gws_external_mail_forwarding`: verified, no change to logic. Google's
Reports API appendix lists `email_forwarding_out_of_domain` under both `user_accounts`
and `login`; exporter samples carry `user_accounts`, which is what is declared. Recorded
in a logsource comment with the appendix as a reference.
- Ledger: 124 rules, 0 added, 0 removed. `coverage-layer.json` and `COVERAGE.md` are
unchanged (no tag or count moved); all three SIEM forms regenerate (descriptions and
the Harbor stanza title are embedded).
- `zircolite-constraints.txt` carries the `pysigma-backend-sqlite==2.0.0` pin as a
stopgap: the host-plane job was red on `main` since #354 (ResolutionImpossible against
`pysigma==1.5.1`) and could not prove the new 4698 fixtures. #360 / #361 hold the full
fix with the Renovate cap; this is the same line so either merges cleanly over it.
- **`github_credential_backdoor` now also selects
`personal_access_token.request_created` (#348).** This follows htpx's `gh-cred-audit`
(htpx#139). GitHub logs the request only in orgs that require approval for
Expand Down
5 changes: 4 additions & 1 deletion detections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ comment isn't enforcement, so this is the discoverable checklist instead.)
| `defense_impairment/dcshadow_rogue_dc_4742` | `filter_real_dcs` → your real DC computer accounts | a `GC/` SPN write onto another real DC would alert (low risk — rare regardless) |
| `credential_access/dcsync_non_dc_machine_account_4662` | `filter_real_dcs` → every DC / RODC computer account | routine DC-to-DC replication alerts at high on every DC not listed |
| `lateral_movement/unconstrained_delegation_4624` | `TargetUserName` → your DC computer accounts, **and** `filter_dc_destinations` → those DCs' exact FQDNs | **inert** — the rule matches only the `DC1$`/`DC2$` examples, so a coerced logon from any other DC is missed entirely. This is the one placeholder that makes its rule a no-op rather than merely noisy; fill it first. |
| `cloud/entra_illicit_consent_grant` | `filter_known_apps` → sanctioned app (client) IDs | verified LOB apps holding mail/file scopes alert (the high-risk-scope match still scopes it) |
| `cloud/entra_illicit_consent_grant` | `filter_known_apps` → sanctioned app (client) IDs | verified LOB apps holding mail/file scopes alert (the high-risk-scope match still scopes it); anchor the allowlist to the consented app at the backend — a sanctioned id named anywhere in the event hides a grant to a different app |
| `snowflake/snowflake_data_unload` | `filter_known_stages` → sanctioned stages / buckets, fully qualified, two per stage: `COPY INTO @DB.SCH.STG/` + root form | a named *internal* stage (not `@%`/`@~`) alerts alongside external ones |
| `collection/mass_file_read_4663` | `filter_indexers` → your backup / AV / indexing / sync agents, as **full paths** | **the loudest unfilled placeholder in the repo.** Reads are constant, so an unfilled list means the nightly backup trips it, someone mutes the rule, and the mute is the blind spot. Fill before deploying, not after. |
| `collection/archive_staging_utility` | `filter_backup_tooling` → your backup / packaging / build tooling | the staging-path half alerts on CI and installer builds that archive into `%TEMP%`; the password-protected half is unaffected and stays high-confidence |
Expand All @@ -647,7 +647,10 @@ comment isn't enforcement, so this is the discoverable checklist instead.)
| `cloud/aws_data_destruction` | `filter_iac` → your IaC / automation principal(s) | a `terraform destroy` of an ephemeral environment and a scheduled snapshot-retention job both look exactly like the attack from CloudTrail alone |
| `impact/account_access_removal_4725` | `filter_identity_admins` → your help-desk / JML / IAM provisioning principals | bulk offboarding alerts. This list is what makes the rule *sharp*, not merely quiet — the signal is an actor who does **not** normally administer identity |
| `cloudflare/cloudflare_waf_rule_disabled` | `filter_ci` → the IaC pipeline's Cloudflare identity | every pipeline-driven edge change is a `high` alert — including the ones that *tighten* the WAF, since `ruleset/update` is the event for any ruleset change |
| `cloudflare/cloudflare_api_token_created` | `filter_ci` → the IaC pipeline's Cloudflare identity | Terraform's `cloudflare_api_token` resource mints a token on every apply that touches it, so every pipeline run is a `high` alert; both Cloudflare siblings already carried this stub |
| `terraform/tfc_variable_injection` | `filter_ci` → the pipeline actor in `auth.description` | fires on every pipeline variable write, among the highest-volume events TFC emits — the rule's own description calls most of them benign CI |
| `terraform/tfc_token_backdoor` | `filter_ci` → the pipeline actor in `auth.description` | `tfe_team_token` / `tfe_organization_token` mint a token on every apply that rotates one, so every pipeline run alerts; same stub as `tfc_variable_injection` |
| `gitlab/gitlab_token_backdoor` | `filter_ci` → your automation's top-level `author_name` (`author_id` is the stricter, immutable form) | the GitLab provider's token resources mint one on every apply that rotates it, so every pipeline run alerts; `author_name` is a mutable display name, so an actor renamed to match the bot is suppressed |
| `registry/harbor_artifact_deleted` | `filter_gc` → your retention / garbage-collection account | routine retention pruning alerts alongside the anti-forensics delete the rule is for |
| `persistence/machine_account_creation_burst_4741` | `filter_provisioning` → your domain-join / imaging / MDM principals | an imaging run clears the correlation's 3-in-30m threshold on its own, so the burst rule pages on routine provisioning |
| `linux/cron_persistence` | `filter_provisioning` → your compiled package manager + CM binaries, as exact `exe` paths | every package install and CM converge that touches a cron path alerts |
Expand Down
Loading
Loading