query-crowdstrike-falcon
Skill0 starsChanged 3 months agoMITView on GitHub
Query Contoso CrowdStrike Falcon for hosts, alerts, Spotlight vulnerabilities, host groups, and prevention/sensor-update policies via the US-2 REST API. Use when the user asks about Falcon, CrowdStrike, "is this device in CrowdStrike", sensor version, containment, RFM, detections, alerts, Spotlight CVEs, or Falcon host groups. This API client is read-only (no contain, RTR, Intel, Discover, or policy writes). Vulnerability KPI scoring stays in analyze-vulnerability-kpis; Rapid7 remains the leadership workbook source.
In this repository22 other files it gives its agents.
- acquire-graph-tokenSkill
- analyze-vulnerability-kpisSkill
- author-shared-skillSkill
- build-power-automate-flowSkill
- check-autopilot-serialsSkill
- create-fedex-labelSkill
- deploy-automox-workletSkill
- draft-it-announcementSkill
- enroll-apple-device-abm-intuneSkill
- freshservice-automation-builderSkill
- freshservice-service-catalogSkill
- it-operationsSkill
- manage-cato-clientSkill
- package-intune-win32-appSkill
- prepare-cab-change-ticketSkill
- retrieve-keeper-secretSkill
- review-intune-byod-app-protectionSkill
- run-intune-maa-teams-notifierSkill
- screenconnect-remote-diagnosticsSkill
- ssh-accessSkill
- switch-ai-toolsSkill
- triage-windows-bsodSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read-only Falcon API for Contoso (https://api.us-2.crowdstrike.com).
- Distinctive: line 11
Prefer moving this record into Keeper later via the retrieve-keeper-secret skill.
- Very specific: line 21
Look the device up by serial first, then exact hostname.
- Very specific: line 24
Run the bundled helper with any Python 3 (py -3):
- Distinctive: line 50
Read-only. If the user asks to contain, lift containment, hide a host, change a policy, run RTR, or close an alert, say this client cannot …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Query CrowdStrike Falcon
Read-only Falcon API for Contoso (https://api.us-2.crowdstrike.com). Credentials live in
C:\temp\temp\env.local (Client ID / Secret / Base URL) or FALCON_CLIENT_ID +
FALCON_CLIENT_SECRET + optional FALCON_BASE_URL. Never print the secret or bearer token.
Prefer moving this record into Keeper later via the retrieve-keeper-secret skill; do not copy
the env file into the skill folder.
Verified 2026-08-19: OAuth succeeds; this client can read Hosts, Alerts, Spotlight,
prevention/sensor-update policies, host groups, and custom IOCs. Contain, hide, tag, alert
status updates, RTR, Intel, Discover, users, firewall policy, and sensor installer download
all return 403 scope not permitted. Do not attempt those writes.
Workflow
- Look the device up by serial first, then exact hostname. After the WKS rename,
Falcon hostnames are usually
WKS-<serial>. Prefix wildcards work (hostname:'WKS-*'); mid-string*SERIAL*does not. - Run the bundled helper with any Python 3 (
py -3):
scripts/falcon-query.pypy -3 "<this skill's folder>\scripts\falcon-query.py" auth
py -3 "<this skill's folder>\scripts\falcon-query.py" host SN0046
py -3 "<this skill's folder>\scripts\falcon-query.py" summary
py -3 "<this skill's folder>\scripts\falcon-query.py" alerts --hostname WKS-SN0042 --limit 20
py -3 "<this skill's folder>\scripts\falcon-query.py" alerts --filter "type:'ldt'+status:'new'" --limit 20
py -3 "<this skill's folder>\scripts\falcon-query.py" spotlight --hostname WKS-SN0026 --limit 20- Summarize sensor health:
status(normal/contained),reduced_functionality_mode,agent_version, last seen, applied prevention policy name, group names. - For detections, do not treat
status:'new'as EPP detections. Most of those rows areproduct:automated-lead-context/type:signalwith null severity. Usetype:'ldt'orseverity:>=50, and filter hosts withdevice.hostname:'...'(plainhostname:returns 0). - Spotlight is instance-heavy (~80k open). Always keep a severity+status filter and a limit.
Join to other systems by serial (from the Hosts API) or hostname; Spotlight
host_infohas hostname, not serial. KPI scoring still belongs in analyze-vulnerability-kpis / Rapid7.
Guardrails
- Read-only. If the user asks to contain, lift containment, hide a host, change a policy, run RTR, or close an alert, say this client cannot do it and stop.
- Endpoint shell work stays in the screenconnect-remote-diagnostics skill. Intune
FalconSensorpackage work stays on the Graph/Intune path. - Details:
references/capabilities.mdandreferences/fql.mdinside this skill's folder.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

