Audit log

From wyre-technology/msp-claude-plugins · View interactive version

Audit log is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. The ThreatLocker Action Log (the API name is "audit"): incident timelines, tracing a file's history across endpoints, repeated-denial detection, and correlating policy bypasses or audit-only matches with user and computer context.

How to use this skill

Skill file

ThreatLocker Audit Log

What the API calls the "audit" endpoints, the ThreatLocker UI calls the

Action Log — the same data either way. Every execution attempt,

every block, every permit, every audit-only match generates an entry.

This is your forensics surface: when something happened on an endpoint,

this is where you find out what.

Anti-triggers

endpoints, not who edited a policy or approved a request in the

console. For approval decisions use

threatlocker-approval-requests; for who invoked a tool through the

gateway, see the plugin's GOVERNANCE.md.

application is in the queue, not the log — use

threatlocker-approval-requests.

Permit, Audit), never a threat verdict. Behavioural detections are

sentinelone-threat-hunting or huntress-signals.

stale agent; check check-in state with threatlocker-computers.

API Tools

Search Action Log

threatlocker_audit_search

POST-based GetByParameters. Common filters via the body:

isAscending: false (newest first is the usual default)

Each row typically includes actionId, actionTime, kindOfAction

(Block, Permit, Audit), fileName, filePath, fileHash, signer,

computerName, userName, policyName, and processChain (parent

process info).

Get Action Detail

threatlocker_audit_get

Returns a single action with full context — full process tree, command

line, network endpoints contacted (when available), and any related

actions clustered around the same event.

File History

threatlocker_audit_file_history

Aggregates all Action Log entries for a given file path or hash. Use

this when you have a candidate IOC and want to know everywhere it

appeared in the fleet, when, and what happened each time.

`kindOfAction` Categorization

| Action | Meaning |

|--------|---------|

| Block | Policy denied execution — the binary did not run |

| Permit | Policy allowed execution — the binary ran |

| Audit | Audit-only — observed but not acted on (often Learning Mode) |

Block + Audit together is the high-signal pair for hunting:

rule but was not stopped — investigate.

actionable.

Common Workflows

Timeline Around a Security Event

When given "something happened on host X around time T":

  1. threatlocker_audit_search with searchText: "<host>",

fromDate: T - 1h, toDate: T + 1h,

orderBy: "actionTime", isAscending: true.

  1. Read forward through the timeline and look for the inflection —

the first unusual binary, the first child process from a known LOLBin

parent, the first network-active process.

  1. For any anomaly, call threatlocker_audit_get for the full detail

and add the parent process to your investigation list.

  1. Pivot on fileHash of the suspicious binary using

threatlocker_audit_file_history to see where else in the fleet it

appeared.

File-Path-Across-Endpoints Investigation

When given an IOC (path or hash):

  1. threatlocker_audit_file_history with the IOC.
  2. Bucket results by computerName — which endpoints saw it?
  3. For each affected endpoint, note the earliest actionTime —

the spread pattern often points to patient zero.

  1. For every Permit action against the IOC, that endpoint may have

been impacted. For every Block, you have evidence the control

stopped it.

Repeated Denials From the Same Source

A pattern worth surfacing: same user or same computer generating many

Block events in a short window.

  1. Search a recent window with kindOfAction: "Block".
  2. Group results client-side by userName and computerName.
  3. Anyone with > N blocks in a short window is either:

approval-requests skill).

Policy Bypass / Audit-Only Match Correlation

  1. Search with kindOfAction: "Audit".
  2. Filter to Secured-Mode endpoints (cross-reference computers via

threatlocker_computers_get — policyMode).

  1. Each Audit hit on a Secured endpoint indicates a watch rule fired

without enforcement — review the rule and decide if it should

become a Block.

Date-Range Filter Patterns

if the parent process is unclear.

Always send dates in ISO 8601 UTC. The Action Log itself stores UTC.

Edge Cases

jump boxes can generate thousands of audit rows per day. Use tight

date windows or signer filters to keep result sets manageable.

multiple log rows (file open, hash check, network connect). Always

read the actionId to confirm uniqueness.

the parent is empty or unknown, treat the row as a starting point

for further investigation, not a final answer.

Best Practices

attackers rename binaries, hashes don't change.

reviewer can re-pull the exact source rows.

approval may explain an otherwise suspicious Permit.

Related Skills

produce Permit actions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.