需要有效的 Falcon 订阅及对应模块权限;需先在 Falcon 控制台创建带相应角色的 OAuth2 API Client;Windows 需 PowerShell 5.1+,Linux/MacOS 需 PowerShell 6+
psfalcon
CrowdStrikeUnlicense活跃维护用 PowerShell 调用 CrowdStrike Falcon 的 OAuth2 API,把威胁情报、终端安全等接口封装成命令行模块,方便安全运维人员写脚本自动化。
PowerShell for CrowdStrike's OAuth2 APIs
2.2.9发布于 2025-09-13 00:56 UTC492star84fork同步于 2026-11-10 11:59 UTC
用 PowerShell 封装 CrowdStrike Falcon OAuth2 API,让你不熟悉 API 也能自动化安全运维
用 PowerShell 调用 CrowdStrike Falcon 的 OAuth2 API,把威胁情报、终端安全等接口封装成命令行模块,方便安全运维人员写脚本自动化。
核心能力
- 封装 Falcon OAuth2 API,无需深入了解 API 细节
- 批量修改检测项、事件、策略或规则
- 调用 Real-time Response 在多台设备上同时执行操作
- 上传下载恶意样本与 RTR 文件
- 管理 MSSP 父级与子级环境配置
容易踩的坑
内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README
- 2.2.9最新正式版2025-09-13 · 2025-09-13 00:56 UTC
Removed Commands
detects
- Edit-FalconDetection
- Get-FalconDetection
falcon-complete-dashboards
- Get-FalconCompleteDetection
New Commands
case-files
- Edit-FalconNgsCaseFile
- Get-FalconNgsCaseFile
- Receive-FalconNgsCaseFile
- Remove-FalconNgsCaseFile
- Send-FalconNgsCaseFile
casemgmt
- Edit-FalconNgsCaseNotificationGroup
- Edit-FalconNgsCaseSla
- Edit-FalconNgsCaseTemplate
- Get-FalconNgsCaseField
- Get-FalconNgsCaseNotificationGroup
- Get-FalconNgsCaseSla
- Get-FalconNgsCaseTemplate
- Get-FalconNgsCaseTemplateSnapshot
- New-FalconNgsCaseNotificationGroup
- New-FalconNgsCaseSla
- New-FalconNgsCaseTemplate
- Remove-FalconNgsCaseNotificationGroup
- Remove-FalconNgsCaseSla
- Remove-FalconNgsCaseTemplate
cases
- Add-FalconNgsCaseEvidence
- Add-FalconNgsCaseTag
- Edit-FalconNgsCase
- Get-FalconNgsCase
- New-FalconNgsCase
- Remove-FalconNgsCaseTag
correlation-rules
- Edit-FalconCorrelationRule
- New-FalconCorrelationRule
cloud-security-assets
- Get-FalconCloudAsset
fem
- Get-FalconSubsidiary
- New-FalconAsset
- Remove-FalconAsset
fwmgr
- Compare-FalconFirewallLocation
humio
- Receive-FalconNgsLookupFile
hunting
- Get-FalconCaoQuery
intel
- Receive-FalconMalwareFamilyAttck
it-automation
- Add-FalconItHostGroup
- Edit-FalconItPolicy
- Edit-FalconItScheduledTask
- Edit-FalconItTask
- Edit-FalconItTaskGroup
- Edit-FalconItUserGroup
- Get-FalconItFileTask
- Get-FalconItHostExecution
- Get-FalconItPolicy
- Get-FalconItScheduledTask
- Get-FalconItTask
- Get-FalconItTaskExecution
- Get-FalconItTaskExecutionSearch
- Get-FalconItTaskGroup
- Get-FalconItUserGroup
- Invoke-FalconItTask
- New-FalconItPolicy
- New-FalconItScheduledTask
- New-FalconItTask
- New-FalconItTaskGroup
- New-FalconItUserGroup
- Redo-FalconItTaskExecution
- Remove-FalconItHostGroup
- Remove-FalconItPolicy
- Remove-FalconItScheduledTask
- Remove-FalconItTask
- Remove-FalconItTaskGroup
- Remove-FalconItUserGroup
- Search-FalconItTaskExecution
- Set-FalconItPolicyPrecedence
- Stop-FalconItTaskExecution
ngsiem-content
- Edit-FalconNgsParser
- Get-FalconNgsDashboard
- Get-FalconNgsLookupFile
- Get-FalconNgsParser
- Get-FalconNgsSavedQuery
- New-FalconNgsParser
- Receive-FalconNgsDashboard
- Receive-FalconNgsParser
- Receive-FalconNgsSavedQuery
- Remove-FalconNgsDashboard
- Remove-FalconNgsLookupFile
- Remove-FalconNgsParser
- Remove-FalconNgsSavedQuery
- Send-FalconNgsDashboard
- Send-FalconNgsLookupFile
- Send-FalconNgsParser
- Send-FalconNgsSavedQuery
- Update-FalconNgsDashboard
- Update-FalconNgsLookupFile
- Update-FalconNgsSavedQuery
oauth2
- Show-FalconToken
policy-content-update
- Get-FalconContentVersion
policy-device-control
- Edit-FalconDeviceControlClass
- Edit-FalconDeviceControlNotification
- Get-FalconDeviceControlNotification
real-time-response
- Receive-FalconPutFile
Issues Resolved
- Issue #441: Added code to ensure that the final
runstep takes place when usingFilewith Windows or Mac hosts. Previously, therunstep was never reached because theextractstep (only necessary when using theArchiveandRunparameters) was not processed. Now that step will be effectively ignored when using theFileparameter for Mac and Windows which should lead everything completing successfully. - Issue #444: Corrected use of
HomeCidto properly evaluate policies to be modified when not in a Flight Control environment, along with errors related tovariantsandschedulerinSensorUpdatePolicy. - Issue #445: Solved with
Import-FalconConfigre-write. - Issue #446: Forced
commentwhen creating/modifyingIoaRule, andversionwhen creating/modifyingIoaGroupusingImport-FalconConfig. - Issue #447: Corrected
Compare-ImportDataunderImport-FalconConfigto check both target CID and import fi
- 2.2.82024-12-19 · 2024-12-19 20:42 UTC
查看更新说明
Removed Commands
ioa
- Get-FalconCloudIoaEvent
- Get-FalconCloudIoaUser
New Commands
billing-dashboards-usage
- Get-FalconHostAverage
device-content
- Get-FalconContentState
identity-protection
- Get-FalconIdentityRule
- New-FalconIdentityRule
- Remove-FalconIdentityRule
policy-content-update
- Edit-FalconContentPolicy
- Get-FalconContentPolicy
- Get-FalconContentPolicyMember
- Invoke-FalconContentPolicyAction
- New-FalconContentPolicy
- Remove-FalconContentPolicy
- Set-FalconContentPrecedence
quickscanpro
- Remove-FalconQuickScan
- Remove-FalconQuickScanFile
- Send-FalconQuickScanFile
snapshots
- Get-FalconSnapshotCredential
- New-FalconSnapshotAwsAccount
Issues Resolved
- Issue #421: Updated internal function to evaluate FalconSensorTags and re-wrote scripts for FalconSensorTag manipulation through Real-time Response to fix the inability to add/remove FalconSensorTags on Linux. This also fixed the same issue that was impacting MacOS hosts.
- Issue #424: Increased
[System.Net.Http.HttpClient]default timeout to 5 minutes from 1 minute. UpdatedInvoke-FalconAdminCommand,Invoke-FalconCommand, andInvoke-FalconResponderCommandto only attempt to appendbatch_idto results that have asession_id. - Issue #426: Updated
Uninstall-FalconSensorto properly select bash uninstall script when targeting Linux hosts. - Issue #427: Added
tarto validCommandlist forInvoke-FalconAdminCommandandInvoke-FalconResponderCommandand correctedInvoke-FalconAdminCommandto properly include theCommandvalueupdate query. - Issue #433: Modified
Edit-FalconFirewallGroupto ensure thatnullvalues forrule_idsandrule_versionsare converted into empty arrays, and that single values are forced into arrays. - Issue #435: Updated
uninstall_sensor.shscript to incorporate the use ofsystemdto uninstallfalcon-sensoron Linux hosts utilizing some additional code from an existing uninstaller script. Thanks @carlosmmatos and @cs-APreston-ghAccount!
General Changes
- Fixed some error message output for
Request-FalconTokenandTest-FalconToken.
Command Changes
ConvertTo-FalconFirewallRule
- Added
protocolas a required field for theMaptable and rule creation.
Edit-FalconReconRule
- Added
MatchOnTsqResultType.
Export-FalconConfig
- Added
ContentPolicyas a value forSelectparameter.
Get-FalconChannelControl
- Renamed to
Get-FalconContentControl.Get-FalconChannelControlhas been kept as an alias.
Get-FalconHost
- Added
content_stateas anIncludevalue.
Get-FalconIoaExclusion
- Added
ClRegexandIfnRegex.
Get-FalconQuickScan
- Updated to use new QuickScan Pro API.
Get-FalconVulnerability
- Updated to set
Limitto400when usingAllwithoutDetailedto prevent5000 is an invalid page size, must be between 1 and 400error.
Import-FalconConfig
- Added support for Content Update policies.
- Added
ContentPolicyas a value forModifyExistingandModifyDefaultparameters.
Invoke-FalconAdminCommand
- Added
taras a validCommandvalue.
Invoke-FalconResponderCommand
- Added
taras a validCommandvalue. - Added
update queryas a validCommandwhich was mistakenly removed in a previous release.
New-FalconCompleteCase
- Added
MalwareSubmissionIdandReconRuleType.
New-FalconQuickScan
- Updated to use new QuickScan Pro API, which is replacing the regular QuickScan API.
New-FalconReconRule
- Added
MatchOnTsqResultType.
Receive-FalconCloudAwsScript
- Added
DspmEnabled,DspmRegion, andDspmRole.
Receive-FalconScheduledReport
- Updated to use a combination of the
last_execution.idandreport_params.formatfields to define a filename ifPathis left undefined and is being passed a report via p
- 2.2.72024-09-03 · 2024-09-03 19:45 UTC
查看更新说明
New Commands
cloud-connect-cspm-azure
- Get-FalconCloudAzureGroup
- New-FalconCloudAzureGroup
- Remove-FalconCloudAzureGroup
cloud-connect-cspm-gcp
- Get-FalconCloudGcpAccount
- Get-FalconCloudGcpServiceAccount
- Invoke-FalconCloudGcpHealthCheck
- Receive-FalconCloudGcpScript
- Remove-FalconCloudGcpAccount
configuration-assessment
- Get-FalconConfigAssessmentRule
container-security
- Edit-FalconContainerPolicy
- Edit-FalconContainerPolicyGroup
- Get-FalconContainer
- Get-FalconContainerAlert
- Get-FalconContainerAssessment
- Get-FalconContainerCluster
- Get-FalconContainerDetection
- Get-FalconContainerCount
- Get-FalconContainerDriftIndicator
- Get-FalconContainerImage
- Get-FalconContainerIom
- Get-FalconContainerNode
- Get-FalconContainerPackage
- Get-FalconContainerPod
- Get-FalconContainerPolicy
- Get-FalconContainerPolicyExclusion
- Get-FalconContainerPolicyGroup
- Get-FalconContainerVulnerability
- New-FalconContainerImage
- New-FalconContainerPolicy
- New-FalconContainerPolicyExclusion
- New-FalconContainerPolicyGroup
- Remove-FalconContainerPolicy
- Remove-FalconContainerPolicyGroup
- Set-FalconContainerPolicyPrecedence
delivery-settings
- Get-FalconChannelControl
- Set-FalconChannelControl
exclusions
- Edit-FalconCertificateExclusion
- Get-FalconCertificate
- Get-FalconCertificateExclusion
- New-FalconCertificateExclusion
- Remove-FalconCertificateExclusion
fem
- Edit-FalconAsset
filevantage
- Get-FalconFileVantageAction
- Get-FalconFileVantageContent
- Invoke-FalconFileVantageAction
- Invoke-FalconFileVantageWorkflow
host-migration
- Get-FalconMigration
- Get-FalconMigrationCid
- Get-FalconMigrationHost
- Invoke-FalconMigrationAction
- New-FalconMigration
- Start-FalconMigration
- Stop-FalconMigration
- Remove-FalconMigration
- Rename-FalconMigration
intel
- Get-FalconMalwareFamily
loggingapi
- Get-FalconFoundryRepository
- Get-FalconFoundrySearch
- Get-FalconFoundryView
plugins
- Get-FalconWorkflowIntegration
psf-sensors
- Set-FalconSensorTag (Thanks @LyleWB)
snapshots
- Get-FalconSnapshot
- Get-FalconSnapshotScan
- New-FalconSnapshotScan
threatgraph
- Get-FalconThreatGraphIndicator
- Get-FalconThreatGraphVertex
- Get-FalconThreatGraphEdge
workflows
- Export-FalconWorkflow
- Get-FalconWorkflow
- Get-FalconWorkflowAction
- Get-FalconWorkflowInput
- Get-FalconWorkflowTrigger
- Import-FalconWorkflow
- Invoke-FalconWorkflow
- Redo-FalconWorkflow
Issues Resolved
- Issue #310: Added default timeout of one minute for all requests in an effort to help produce error messages when a file download does not complete.
- Issue #369: Corrected
Find-FalconHostnameso it outputs the entire list of results instead of stopping with the first initial 100. - Issue #370: Changed all identifier parameter aliases from uppercase to lowercase to resolve matching issues when using Turkish as the default display language.
- Issue #375: Added a second delay for
Invoke-FalconDeploybetween commands when using the offline queue to ensure that the proper processing order is retained. - Issue #380: Updated
Compare-ImportDatafunction to analyze items by each individualplatform(orplatform_name) to resolve bug whereFirewallGroupitems were being ignored. - Issue #382: Removed output of successfully downloaded file information from
Invoke-Falconprivate function and relocated within theInvoke()class function to preventIndex out of range erroron successful download requests. - Issue #385: Re-wrote
Add-FalconSensorTagandRemove-FalconSensorTagcommands properly append/remove tags across all OSes, and fix issue where tags weren't applied at all. - Issue #391: Removed pattern validation for the
Idparameter forGet-FalconAssetto prevent errors when unexpected (but legitimate)Idvalues are
- 2.2.62023-11-22 · 2023-11-22 18:47 UTC
查看更新说明
New Commands
cloud-connect-azure
- Get-FalconDiscoverAzureTenant
configuration-assessment
- Get-FalconConfigAssessment
- Get-FalconConfigAssessmentLogic
falcon-complete-dashboards
- Get-FalconCompleteAlert
filevantage
- Add-FalconFileVantageHostGroup
- Add-FalconFileVantageRuleGroup
- Edit-FalconFileVantageExclusion
- Edit-FalconFileVantagePolicy
- Edit-FalconFileVantageRule
- Edit-FalconFileVantageRuleGroup
- Get-FalconFileVantageExclusion
- Get-FalconFileVantagePolicy
- Get-FalconFileVantageRule
- Get-FalconFileVantageRuleGroup
- New-FalconFileVantageExclusion
- New-FalconFileVantagePolicy
- New-FalconFileVantageRule
- New-FalconFileVantageRuleGroup
- Remove-FalconFileVantageExclusion
- Remove-FalconFileVantageHostGroup
- Remove-FalconFileVantagePolicy
- Remove-FalconFileVantageRule
- Remove-FalconFileVantageRuleGroup
- Set-FalconFileVantagePrecedence
- Set-FalconFileVantageRulePrecedence
- Set-FalconFileVantageRuleGroupPrecedence
identity-protection
- Get-FalconIdentityHost
real-time-response
- Get-FalconLibraryScript
Removed Commands
cloud-connect-aws (deprecated)
- Confirm-FalconDiscoverAwsAccess
- Edit-FalconDiscoverAwsAccount
- Get-FalconDiscoverAwsAccount
- Get-FalconDiscoverAwsLink
- Get-FalconDiscoverAwsSetting
- New-FalconDiscoverAwsAccount
- Receive-FalconDiscoverAwsScript
- Remove-FalconDiscoverAwsAccount
- Update-FalconDiscoverAwsSetting
cloud-connect-azure (deprecated)
- Get-FalconDiscoverAzureAccount
- Get-FalconDiscoverAzureCertificate
- Get-FalconDiscoverAzureTenant
- New-FalconDiscoverAzureAccount
- Receive-FalconDiscoverAzureScript
- Update-FalconDiscoverAzureAccount
cloud-connect-gcp (deprecated)
- Get-FalconDiscoverGcpAccount
- New-FalconDiscoverGcpAccount
- Receive-FalconDiscoverGcpScript
discover
- Get-FalconDiscoverNetwork
- Get-FalconDiscoverRule
- Get-FalconDiscoverScan
- Get-FalconDiscoverScanner
settings-discover (deprecated)
- Get-FalconDiscoverAwsScript
Issues Resolved
- Issue #313: Reorganized parameters for
Get-FalconRoleand removedUserIdfrom a specific ParameterSet to ensure proper output. - Issue #315: Modified script used by
Uninstall-FalconSensortomatch 64instead ofequal 64-bitto correct error caused when bit value is reported as64 bitinstead of64-bit. - Issue #316: Added
ifcheck toConfirm-Parameterfor$Requiredand$Allowedto ensure that blank values do not count when verifying objects under PowerShell Core. - Issue #327: Modified
Invoke-FalconDeployto properly change directories and execute scripts when working with.cmdand.batfiles. Thanks @MatthewCKelly! - Issue #342: Modified
Invoke-FalconMalQueryandGet-FalconMalQueryto select thereqid,reqtypeand/orstatusproperties in their final output, when present. - Issue #360: Fixed bug where
Get-FalconAssetwould not append results when using-Include login_eventwith a single asset result. - Issue #363: Added
criticalas a severity forEdit-FalconHorizonPolicy.
General Changes
- Modified all authorization token validation checks to request a new token when the current token is due to
expire within 4 minutes instead of 1 minute. This should help reduce the number of expired authorization
tokens during long-running requests (like
Get-FalconVulnerability). - Migrated
Wait-RetryAfterfunction fromprivate\Private.ps1toclass\Class.ps1underApiClient.Invoke()function. - Streamlined
ApiClient.Invoke()underclass\Class.ps1in an effort to improve verbose logging and performance. - Modified private functions
Invoke-FalconandRequest-FalconTokento compensate for changes toApiClient.Invoke(). - Modified
Write-Resultto ensure each error will be individually produced when a single API call generates multiple errors. - Rearranged how
ApiClient.Invoke()downloads
- 2.2.52023-04-29 · 2023-04-29 00:53 UTC
查看更新说明
New Commands
container-security
- Edit-FalconContainerRegistry
- Get-FalconContainerRegistry
- New-FalconContainerRegistry
- Remove-FalconContainerRegistry
discover
falconx
fwmgr
- Edit-FalconFirewallLocation
- Edit-FalconFirewallLocationSetting
- Get-FalconFirewallLocation
- New-FalconFirewallLocation
- Remove-FalconFirewallLocation
- Set-FalconFirewallLocationPrecedence
kubernetes-protection
- Get-FalconContainerAccount
- Get-FalconContainerAzureScript
- Get-FalconContainerAzureTenant
- Get-FalconContainerScript
Issues Resolved
- Issue #283: Added
platformduring creation ofFirewallGroupitems when usingImport-FalconConfig. - Issue #294: Modified the FQL query being used by
Get-FalconQueueto account for an API change that made the previous query stop working. - Issue #295: Added code to the sub-function
Invoke-LoopinsideInvoke-Falconto strip all query parameters when paginatingGet-FalconHorizonIom. - Issue #296: Updated
Get-FalconAssetto ensure proper attachment oflogin_eventresults for each asset when using-Include login_event. - Issue #283: Modified
New-FalconSensorUpdatePolicyto removeschedulerundersettingswhen set as disabled to prevent errors when creating policies.
General Changes
- Updated reference policies for
Compare-FalconPreventionPhase. - Switched from using
Write-VerbosetoPSCmdlet.WriteVerbose()to increase content when usingVerbosewith commands. - Added additional verbose message output when commands send their requests to display the endpoint being used.
- Added (local) timestamp at the beginning of verbose output messages through the creation of a
Verbosefunction withinclass\Class.ps1and the private functionunnamed. - Added
Start-RtrUpdateandStop-RtrUpdatefunctions to manage PowerShell background jobs to refresh Real-time Response sessions when usingInvoke-FalconRtrorInvoke-FalconDeploy. - Changed the
Waitparameter forInvoke-FalconAdminCommand,Invoke-FalconBatchGet,Invoke-FalconCommand, andInvoke-FalconResponderCommandto wait until completion instead of a maximum of 60 seconds. - Added
Wait-RtrCommandandWait-RtrGetprivate functions when usingWaitwith Real-time Response commands. - Streamlined some of the code of
Write-Resultto increase performance.
用户点评
登录用户的真实使用记录,可按版本和硬件筛选共 0 条
还没有人点评。第一个说出真实体验的人最有价值。
Overview
PSFalcon is a PowerShell Module that helps CrowdStrike Falcon users interact with the CrowdStrike Falcon OAuth2 APIs without having extensive knowledge of APIs or PowerShell. PSFalcon helps you automate tasks and perform actions outside of the Falcon UI. For example, you could create scripts that:
- Modify large numbers of detections, incidents, policies or rules
- Utilize Real-time Response to perform an action on many devices at the same time
- Upload or download malware samples or Real-time Response files
- Create/modify configurations for MSSP parent and child environments
Requirements
- An active Falcon subscription for the appropriate modules
- PowerShell 5.1+ (Windows), PowerShell 6+ (Linux/MacOS)
- A Falcon OAuth2 API Client with appropriate roles