Setting up 2FA for FalconPy? #1084
-
Hi, Is there a document explaining how to setup 2FA for FalconPy (using okta/duo/etc)? Also, I've used PSFalcon in the past and used Microsoft Powershell SecretVault to store creds, is there a similar way to do auth for FalconPy? Also, if there a way to push auth to a phone when a user wants to run falconpy scripts? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Additional comment... does anyone have a key management system they recommend that is locally hosted (in a file/encrypted) and requires auth to get new Client Token for use? Again, the "SecretVault" from MSFT in powershell works pretty well, but would love to have a python solution not requiring PS. |
Beta Was this translation helpful? Give feedback.
-
Hi cyberbeach33 - Thanks for the questions! 😄 Note While FalconPy maintains credentials and authentication state within the Authentication Object, it does not maintain information about how these credentials are provided or additional authentication factors used. This is intentional, and allows for more developer flexibility regarding these types of requirements. Let’s start with credential storage. Storing credentialsThere are many examples of storing credentials using Python online, with none of them necessarily being the “right” or “wrong” answer. Each solution has unique advantages and disadvantages. Some solutions may align to the needs of your environment, others… maybe not so much. FalconPy repository examplesWe have a few examples demonstrating potential solutions here within this repo:
A few other possibilitiesAdditional options that leverage different vendors:
Two-factor authenticationAs mentioned, FalconPy doesn’t handle this part of your application, but there are several potential solutions that would work in conjunction with a project leveraging FalconPy. Some of the available options provide SMS / phone interaction as an available second factor, others you may need to do more work to get there. All of these vendors provide documented SDKs for interacting with their APIs. These solutions could also be potentially mixed with the examples mentioned above. Important Depending on implementation, it may be trivial for your application users to circumvent these solutions if they have access to the Python source. |
Beta Was this translation helpful? Give feedback.
Hi cyberbeach33 -
Thanks for the questions! 😄
Note
While FalconPy maintains credentials and authentication state within the Authentication Object, it does not maintain information about how these credentials are provided or additional authentication factors used. This is intentional, and allows for more developer flexibility regarding these types of requirements.
Let’s start with credential storage.
Storing credentials
There are many examples of storing credentials using Python online, with none of them necessarily being the “right” or “wrong” answer. Each solution has unique advantages and disadvantages. Some solutions may align to the needs of your environment, others… maybe not so much.