Create a credential for Studio
Decide what the connection may do, then make a SIEM credential that can do exactly that.
Goal
You hold three things: your SIEM's API address, a credential for Studio that can read and nothing more, and your CA certificate if the SIEM uses a private one.
Before you start
Decide what the connection is for. Studio asks this when you connect, so decide now. Read data imports the schema and the rules that already exist. Deploy detections pushes detections back. Test target, on Splunk only, runs simulations. This path needs Read data alone, and a credential that can only read is the simplest way to be sure Studio changes nothing.
Find the API address. On Splunk it is the management port, usually 8089:
https://splunk.internal:8089on your own network, orhttps://<stack>.splunkcloud.com:8089on Splunk Cloud. For another SIEM, the manual lists the address and credential each one needs.
Create a user for Studio. Give Studio its own account in the SIEM, never a person's. On Splunk, a user with the
userrole is enough for everything in this path: the lessons were checked with a token for a user holding only that role, and it connected, synced and ran a backtest.Create a token for that user. On Splunk, turn on token authentication, create a token for the new user and copy it at once, because Splunk shows it only then. Store it in your password manager.
Collect your CA certificate, if you have one. If the SIEM's certificate is signed by a private CA, export that CA's certificate in PEM form. Studio verifies TLS, and it will need this to trust your SIEM.
Test the credential from Studio's server. On Splunk, ask the API who you are:
curl --cacert ca.pem -H "Authorization: Bearer <token>" \ "https://splunk.internal:8089/services/authentication/current-context?output_mode=json"Leave out
--cacert ca.pemwhen the certificate is from a public CA. The answer names the user and its roles.
You should now see
The answer from your SIEM, naming the user you created and only the role you gave it. On the install these lessons were checked on, that is talon_studio with the role user.
If the command cannot connect, fix that first. Studio will fail the same way, from the same server.
Quick check
Go deeper
- Adding a connection, for the fields each of the ten SIEMs asks for.
- Deploy and test targets, for what a connection needs once you want Studio to deploy.
- Security, for how Studio stores the token.