This sample is designed to show how to use Python Functions in Falcon Foundry. It contains a few capabilities:
-
Python functions:
- hello: Simple greeting service
- host-details: Uses FalconPy to get Host details
- servicenow: Uses FalconPy to invoke an API Integration
- log-event: Uses FalconPy to store data in a collection
-
Test workflows to invoke each function.
-
A UI extension on Endpoint security > Endpoint detections that can be used to call the
hellofunction.
When you install this app, you will be prompted for ServiceNow credentials. You can create a developer account at https://developer.servicenow.com. Your configuration should look similar to the following.
TIP: If you'd rather not create an account, just fill in fake values when installing. You won't be able to test the ServiceNow API integration nor invoke the servicenow function if you use fake values.
After installing the app, go to Fusion SOAR > Workflows to see the test workflows for functions. Execute the Test hello function workflow to ensure it works. To execute the Test host-details function workflow successfully, enter a Host ID that matches a host in your CID.
To see the UI extension, go to Endpoint security > Endpoint detections and click on a detection. Look for the hello panel on the right. Click to expand, enter a name, and click the Say Hello button.
The source code for this app can be found on GitHub: https://github.com/CrowdStrike/foundry-sample-functions-python.
