mandiant / mandiant/capa-rules

PPID spoofing via PROC_THREAD_ATTRIBUTE_PARENT_PROCESS not detected

Open
#1,145 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

false negative
Dominant language
No language data
Stars
736
Forks
245
Avg merge
4d 53m
Merged PRs (30d)
2

Description

### What should have matched?
A capability for spawning a process with a spoofed parent process (PPID spoofing).

### What happened?
No relevant capability was detected.

### Why this looks like a miss
The sample uses the classic PPID spoofing flow:
- `InitializeProcThreadAttributeList`
- `UpdateProcThreadAttribute` with `PROC_THREAD_ATTRIBUTE_PARENT_PROCESS`
- `CreateProcess*` with extended startup attributes

This is a common defense-evasion behavior and should be a strong candidate for rule coverage.

### Suggested detection direction
Conservative initial rule requiring co-occurrence of:
1. attribute-list initialization APIs, and
2. parent-process attribute update, and
3. process creation API usage within the same function/scope.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the existing capa rules and tests for Windows process creation, then compare their handling of InitializeProcThreadAttributeList, UpdateProcThreadAttribute, PROC_THREAD_ATTRIBUTE_PARENT_PROCESS, and CreateProcess*. Done means adding conservative coverage that requires all three behavior groups within the same function or scope and verifying it against the PPID-spoofing sample.

Written by the indexing model from the issue text.

Assessment

Domain
security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.