skip to content

What the Sensor Records

What endpoint signal exists at all: the stream a sensor keeps, the engine that convicts a chain, hosts carrying no agent, and bait you plant. Interviewers probe the hosts nobody counted.

on this pageshow

explore

questions

16

Why do hash and YARA matching miss a signed archiving tool encrypting a file share?

level: juniorimportance: must knowfreq 74%

answer

  1. Two verdicts: about content, about conduct
  2. Nothing bad is inside the file
  3. A hash fires on bytes, not on use
  4. The sequence is the malware here
  5. Enumerate, delete shadow copies, rewrite

basics

~20 s

Hash and YARA matching test content against known-bad patterns. A signed, allow-listed archiver is legitimate content, so nothing matches. The malice lives in how the tool is driven, and only a behavioural chain can convict that.

solid answer

~50 s

Both techniques judge content. A hash is an exact fingerprint of a file's bytes, so it only fires on a sample someone has already convicted. YARA matches strings and byte patterns inside a file or in memory, so it only fires on content that resembles a family someone has already characterised. Here the binary is a genuine, code-signed archiver whose hash matches the vendor's published release, and it sits on the allow-list because backup jobs use it. There is nothing bad in the file to match. What is malicious is the sequence: enumerate the shares, delete the Volume Shadow Copies, then rename-and-rewrite thousands of files at machine speed with the originals deleted. No single step is malware; the chain is. Convicting it requires an engine that scores related events across one process tree over time, which is why prevention moved from convicting a file to convicting a behaviour.

code

text · 11 lines
text
Event ID:         1  (Sysmon ProcessCreate)
Image:            C:\Program Files\ArchiveUtil\arcutil.exe
OriginalFileName: arcutil.exe
Company:          ArchiveUtil Ltd
Hashes:           SHA256=<matches vendor's published release>
User:             CORP\svc-backup
ParentImage:      C:\Windows\System32\cmd.exe
ParentCommandLine: cmd.exe /c C:\Users\Public\run.bat
CommandLine:      arcutil.exe a -p<redacted> -sdel -r Z:\Finance\* ...
                  (a = add to archive, -p = encrypt with password,
                   -sdel = delete source files, -r = recurse)

go deeper

for a junior

Be ready to say plainly what a hash and a YARA rule each compare, and that both look inside content. Then name the alternative: an engine that watches what a process does over time.

for a middle

An interviewer expects you to walk the actual chain — share enumeration, shadow-copy deletion, bulk rename-and-write — and explain why each step alone is ambiguous while the sequence is not.

for a senior

Show the judgment: a clean static verdict is not evidence of benign use, and you should be able to say which telemetry fields you would pull to argue the case either way.

for a principal

Own the consequence for strategy: if assurance rests on known-bad matching, the estate is blind to every legitimate tool used against it, and that shapes what you buy and what you promise the business.

## Two different questions an endpoint product asks An endpoint protection product asks two separable questions about anything that runs on a host. **Is this content known to be bad?** This is the static half of the verdict pipeline, and it runs before or at execution. A cryptographic hash (SHA-256) is an exact fingerprint of a file's bytes: it answers "is this the same file as one already convicted", and a single changed byte makes it answer no. A YARA rule is a pattern language over file and memory *content* — strings, byte sequences, and conditions combining them — so it generalises a little beyond one exact sample to a family that shares recognisable material. Some products add a machine-learning file classifier in the same stage, which still reasons about the file itself. **Is this behaviour malicious?** This is the dynamic half, and it can only run once something is executing. It watches process creation with command lines, module loads, file writes, registry changes and network connections, ties them to one process tree, and scores the story they tell. ## Why this case defeats the static half completely The binary in this scenario is a real archiving utility from a real vendor. It is code-signed with a valid certificate, its hash matches the vendor's published release, and the estate deliberately allow-listed it because backup and packaging jobs depend on it. Every static test therefore returns "clean", and it returns "clean" *correctly* — the file genuinely is what it claims to be. This is the whole point of driving a legitimate tool instead of dropping malware: the adversary supplies no content for the content engine to judge. The telemetry still records everything. A process-creation record shows the image path, the command line, the parent process and the hash. The hash is clean; the command line is the interesting part, because it is where the intent lives — recursive, password-protected, delete-originals, pointed at a mapped drive. ## What the chain looks like The conviction has to come from the sequence, roughly: 1. Enumerate accessible shares and mapped drives. 2. Delete the Volume Shadow Copies, so the local restore points are gone. 3. Rewrite thousands of files rapidly, each original deleted after its encrypted replacement is written. Taken one at a time these are ambiguous. Backup software enumerates shares. Administrators occasionally clear shadow copies to reclaim disk. Archiving tools legitimately write many files fast. Taken together, on one process tree, within minutes, they are not ambiguous at all. ## Get the direction of the claim right A clean hash verdict proves the file matches a known-good release. It does not prove the *use* was authorised, and it is not a statement about the activity at all. Likewise, the absence of a YARA match proves that no rule you have describes this content — not that the content is safe, and certainly not that nothing malicious happened. Candidates who read "no detection" as "no problem" invert this, and it is the most common wrong answer in this area. The reverse inversion matters too: an artefact you can observe (a hash, a file name, an IP address) is an *indicator*; the way an adversary operates (drive a signed archiver to encrypt a share) is a *behaviour*. Indicators are cheap to change; the behaviour is what the operator actually needs to do. ## Why static matching still ships in every product It is cheap, deterministic and near-silent. It can act *before* execution rather than mid-chain, it produces almost no false positives, it lets you sweep an estate for a family you already know, and YARA in particular can scan memory, where an in-memory payload that never touched disk becomes visible. Nobody removes it; it is simply the wrong instrument for a legitimate tool being misused. ## What this means on a small team On a mid-size Windows file server estate run by one analyst with no overnight cover, this distinction is not academic. If the estate's confidence rests on "our AV is clean everywhere", the first evidence of this attack will be users unable to open files in the morning. The behavioural engine, running unattended, is the only control positioned to act at 02:00 — and everything the team can promise about recovery depends on what that engine convicted and how quickly.

  • The console shows no static detection on that archiver. What does that tell you about whether it was used maliciously?
    Nothing. A clean static verdict says the file matches known-good content; it makes no claim about how the file was driven. The evidence about use lives in the command line, the parent process, the timing and the file-write pattern. Treating an absent match as exoneration is how this class of attack runs for hours unchallenged.
  • If YARA cannot see this, where does it still earn its place in a SOC?
    Scanning content rather than conduct: sweeping collected files or a memory image for a family you have already characterised, catching an in-memory payload that never touched disk, and triaging a large collection of suspect files quickly. It answers "is this the thing we know about", which is a different and still useful question.
  • Which single field in that process-creation record carries the most investigative value here?
    The command line. The image, the signer and the hash all say "legitimate archiver"; the command line says recursive, encrypted, delete-originals, against a mapped share. That is why command-line capture matters — on Windows, Sysmon Event ID 1 always carries it, while the native 4688 event carries it only if audit policy was configured to include it.

A hash check is a doorman with a photo of a known burglar. The archiver is a locksmith with valid ID and a work order, so the photo never matches; you only learn anything by watching what he does once he is inside.

saying these in an interview costs you the question

  • Insists the file must be malware because it encrypted data
  • Reads a clean hash verdict as proof the activity was benign
  • Thinks YARA is a log rule that runs over events
  • Assumes a valid code signature means the use was authorised
  • Says the attack was undetectable because AV was clean

context

open as a page

Why does a honey account — a decoy Active Directory user nobody uses — alert with higher fidelity than a behavioural rule?

level: juniorimportance: must knowfreq 62%

basics

~20 s

The fidelity comes from the asset, not the rule. Nothing legitimate should ever touch an account no person or service uses, so a single interaction is abnormal by construction — no baseline, threshold or tuning required.

open as a page

An EDR sensor raised no alert on a Linux server — what can a hunter still search there?

level: juniorimportance: must knowfreq 68%

basics

~20 s

An EDR sensor records continuously, not only when it convicts. Process executions with full command lines and recorded parents, module loads, file writes and outbound connections are all in the stream, searchable whether or not any detection fired.

open as a page

Which hosts in an enterprise estate can carry no EDR agent at all, and what does the absence of an EDR alert from them prove?

level: juniorimportance: must knowfreq 74%

basics

~20 s

Network and storage appliances with vendor-locked operating systems, hypervisors such as ESXi, embedded and OT devices, and contractor or BYOD laptops you have no right to manage. No alert from them proves nothing: there is no sensor to fire one.

open as a page

Your EDR console keeps 7 days of events — how do you investigate an intrusion that began 45 days ago?

level: seniorimportance: must knowfreq 54%

basics

~20 s

Split the question into what the stream can still answer and what is gone. Search the retained window, query the host's present state for surviving artefacts, and record the pre-window period as no visibility rather than no activity. Never infer the earliest link.

open as a page

What must a behavioural EDR engine observe before it convicts a chain, and what does that delay cost?

level: middleimportance: should knowfreq 57%

basics

~20 s

It must observe enough related events on one process tree to separate malice from administration. That evidence exists only once execution is underway, so conviction lands after files are already encrypted — which is why vendors ship rollback.

open as a page

A canary-token document from a decoy file share called back — what does that callback actually prove?

level: middleimportance: should knowfreq 40%

basics

~20 s

It proves something rendered the file and that host could reach the token service then. It names no person and proves no copying: the source address is usually your egress gateway, the user agent the renderer.

open as a page

What makes an Active Directory decoy account carrying an SPN believable to an adversary who checks before biting?

level: middleimportance: should knowfreq 44%

basics

~20 s

Consistency with its peers: an age band, naming convention, organisational unit, group memberships and description matching real service accounts, plus a service principal name pointing at a host that exists. Bare, brand-new objects get skipped.

open as a page

What does an EDR stream show when an intruder runs discovery inside a long-lived allow-listed process?

level: middleimportance: should knowfreq 46%

basics

~20 s

Quite a lot, none of it on disk. Expect shared-object load events into the running process, a burst of sub-second child processes carrying full command lines, and outbound connection events attributed to that process — with no new binary and no file write anywhere.

open as a page

A build directory sits on the EDR performance exclusion list. What does that exclusion suppress, and how would an adversary use it?

level: middleimportance: should knowfreq 55%

basics

~20 s

It suppresses whatever the product ties to that path, usually on-access scanning and sometimes behavioural detection or collection too. An adversary who can read or guess the list stages tooling inside the excluded directory and runs it unscanned.

open as a page

SentinelOne rolled back the encrypted host, so why were the mapped share's files still encrypted?

level: seniorimportance: should knowfreq 41%

basics

~20 s

Rollback is a local undo. The Windows agent restores files on its own endpoint's volumes from Volume Shadow Copy snapshots plus its record of observed changes. A mapped drive is another machine's storage, so nothing there is in scope.

open as a page

Your honey account fires every Tuesday at 02:00 from the credentialed vulnerability scanner — what do you change?

level: seniorimportance: should knowfreq 38%

basics

~20 s

Change the placement, not the rule. Take the decoy out of the scanner's credentialed scope and the inventory crawler's discovery source so nothing legitimate reaches it. Suppressing the alert instead creates an exclusion an adversary can operate inside.

open as a page

Your EDR console records a token-authenticated agent uninstall on a production Linux host. How do you decide whether an adversary did it?

level: seniorimportance: should knowfreq 60%

basics

~20 s

Treat it as an intrusion until proven otherwise. Tie the uninstall to a change record and an operator, work out where the token came from, and reconstruct the host from records other than the agent's.

open as a page

In an EDR bake-off, how would you falsify a vendor's claim that behavioural AI convicts fileless attacks?

level: principalimportance: nice to knowfreq 28%

basics

~20 s

You cannot inspect the model, so test its output. Execute the behaviour yourself in the trial tenant under the policy you would really deploy, and measure what got through and the damage before the action — not alert counts.

open as a page

How do you stop IT from deleting your decoy accounts without letting an adversary discover the list?

level: principalimportance: nice to knowfreq 30%

basics

~10 s

Protect decoys with controls rather than knowledge: deny-delete permissions, alerting on their container, attributes hygiene policy will not select. Keep the written record small, owned, and outside what an intruder enumerates.

open as a page

A vendor voids support if you install the EDR agent and the platform team refuses it on CPU grounds. How do you design around that?

level: principalimportance: nice to knowfreq 36%

basics

~20 s

Stop arguing about the agent and buy visibility elsewhere: mandatory log forwarding, network chokepoints, jump-host-only administration with recorded sessions, and segmentation. Then record the gap as an owned, dated risk acceptance and make agent support a procurement requirement.

open as a page