-
Notifications
You must be signed in to change notification settings - Fork 72
Invoke FalconIdentityGraph
bk-cs edited this page Apr 28, 2023
·
24 revisions
Interact with Falcon Identity using GraphQL
The 'All' parameter requires that your GraphQL statement contain an 'after' cursor variable definition and 'pageInfo { hasNextPage endCursor }'.
Requires 'Identity Protection GraphQL: Write', and other 'Identity Protection' permission(s) depending on query.
Name | Type | Description | Min | Max | Allowed | Pipeline | PipelineByName |
---|---|---|---|---|---|---|---|
String | String | A complete GraphQL statement | X | ||||
Variable | Hashtable | A hashtable containing variables used in your GraphQL statement | X | ||||
All | Switch | Repeat requests until all available results are retrieved |
Invoke-FalconIdentityGraph [-String] <String> [[-Variable] <Hashtable>] [-All] [-WhatIf] [-Confirm] [<CommonParameters>]
Queries can be created using GraphiQl. [ US-1 | US-2 | EU-1 | US-GOV-1 ]
$Query = '{
entities(types: [USER], archived: false, first: 10, dataSources: [ACTIVE_DIRECTORY]) {
nodes {
primaryDisplayName
secondaryDisplayName
riskScoreSeverity
accounts {
description
... on ActiveDirectoryAccountDescriptor {
passwordAttributes {
lastChange
}
creationTime
objectSid
samAccountName
domain
enabled
ou
lastUpdateTime
}
}
}
}
}'
Invoke-FalconIdentityGraph -String $Query
To have the results paginated using the All
parameter, you must define a Cursor
variable, and include it within
entities
along with the relevant pageInfo
properties. When the results are paginated using All
, PSFalcon will
display the contents of entities.nodes
directly, rather than the entire response object (similar to other
PSFalcon commands).
$Query = 'query ($after: Cursor) {
entities(types: [USER], archived: false, after: $after, first: 10, dataSources: [ACTIVE_DIRECTORY]) {
nodes {
primaryDisplayName
secondaryDisplayName
riskScoreSeverity
accounts {
description
... on ActiveDirectoryAccountDescriptor {
passwordAttributes {
lastChange
}
creationTime
objectSid
samAccountName
domain
enabled
ou
lastUpdateTime
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}'
Invoke-FalconIdentityGraph -String $Query -All
Invoke-FalconIdentityGraph -String '{entities(roles:[BuiltinAdministratorRole] sortKey:PRIMARY_DISPLAY_NAME sortOrder:ASCENDING first:5) {nodes{primaryDisplayName secondaryDisplayName}}}'
Invoke-FalconIdentityGraph -String '{entities(types:[USER] minRiskScoreSeverity:MEDIUM sortKey: RISK_SCORE sortOrder:DESCENDING first:10) {nodes{primaryDisplayName secondaryDisplayName isHuman:hasRole(type:HumanUserAccountRole) isProgrammatic:hasRole(type:ProgrammaticUserAccountRole) ... on UserEntity{emailAddresses} riskScore riskScoreSeverity riskFactors {type severity}}}}'
$Query = 'query ($after: Cursor) {
entities(types: [USER], archived: false, learned: false, after: $after, first: 1000) {
nodes {
primaryDisplayName
secondaryDisplayName
accounts {
... on ActiveDirectoryAccountDescriptor {
domain
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}'
Invoke-FalconIdentityGraph -String $Query -All
2023-04-25: PSFalcon v2.2.5
- Using PSFalcon
-
Commands by Permission
- Actors (Falcon Intelligence)
- Alerts
- API integrations
- App Logs
- Channel File Control Settings
- Configuration Assessment
- Content Update Policies
- Correlation Rules
- CSPM registration
- Custom IOA rules
- Detections
- Device Content
- Device control policies
- Event streams
- Falcon Complete Dashboards
- Falcon Container Image
- Falcon Data Replicator
- Falcon Discover
- Falcon FileVantage
- Falcon FileVantage Content
- Firewall management
- Flight Control
- Host groups
- Host Migration
- Hosts
- Identity Protection Entities
- Identity Protection GraphQL
- Identity Protection Policy Rules
- Incidents
- Indicators (Falcon Intelligence)
- Installation tokens
- Installation token settings
- IOA Exclusions
- IOC Manager APIs
- IOCs
- Kubernetes Protection
- Machine Learning exclusions
- MalQuery
- Malware Families (Falcon Intelligence)
- Message Center
- Mobile Enrollment
- Monitoring rules (Falcon Intelligence Recon)
- On demand scans (ODS)
- OverWatch Dashboard
- Prevention Policies
- Quarantined Files
- QuickScan Pro
- Real time response
- Real time response (admin)
- Reports (Falcon Intelligence)
- Response policies
- Rules (Falcon Intelligence)
- Sample uploads
- Sandbox (Falcon Intelligence)
- Scheduled Reports
- Sensor Download
- Sensor update policies
- Sensor Usage
- Sensor Visibility Exclusions
- Snapshot
- Snapshot Scanner Image Download
- Tailored Intelligence
- Threatgraph
- User management
- Vulnerabilities
- Vulnerabilities (Falcon Intelligence)
- Workflow
- Zero Trust Assessment
- Other Commands
- Examples
-
CrowdStrike SDKs
- FalconPy - Python 3
- goFalcon - Go
- Rusty Falcon - Rust