User Execution: Malicious Copy and Paste T1204.004

Tactic: Execution

An adversary may rely upon a user copying and pasting code in order to gain execution. Users may be subjected to social engineering to get them to copy and paste code directly into a Command and Scripting Interpreter. One such strategy is "ClickFix," in which adversaries present users with seemingly helpful solutions—such as prompts to fix errors or complete CAPTCHAs—that instead instruct the user to copy and paste malicious code.

Events covered

3 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 8 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (9 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
CommandLine4contains 4#, account, , %comspec%, action identificator
Details3contains 3#, ,             , %comspec%, account
ParentImage3ends_with 3\explorer.exe, \brave.exe, \chrome.exe, \firefox.exe
TargetObject3ends_with 2, contains 1\software\microsoft\windows\currentversion\explorer\typed..., \software\microsoft\windows\currentversion\explorer\runmru\
event.type2eq 2start
process_name2eq 2certreq.exe, certutil.exe, cmd.exe, cscript.exe, mshta.exe
Image1wildcard 1?:\users\*\downloads\*
parent_process_name1eq 1explorer.exe
process.parent.args1eq 1--message-loop-type-ui, --service-sandbox-type=none

Top indicator values (125 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
CommandLinecontains
#
33
CommandLinecontains
account
22
CommandLinecontains
anti-bot
22
CommandLinecontains
botcheck
22
CommandLinecontains
captcha
22
CommandLinecontains
challenge
22
CommandLinecontains
confirmation
22
CommandLinecontains
fraud
22
CommandLinecontains
human
22
CommandLinecontains
identification
22
CommandLinecontains
identificator
22
CommandLinecontains
identity
22
CommandLinecontains
robot
22
CommandLinecontains
validation
22
CommandLinecontains
verification
22
CommandLinecontains
verify
22
Detailscontains
#
33
Detailscontains
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22
Detailscontains
            
22

Exclusions (3 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
process.argseq
ndfapi.dll,NdfRunDllDiagnoseWithAnswerFile
1
process.argseq
shwebsvc.dll,AddNetPlaceRunDll
1
process_nameeq
rundll32.exe
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 6 rules

Elastic 2 rules