Deploying AlienVault TI to Sentinel – a short walkthrough
Through this article we will be setting up AlienVault OTX as Threat Intelligence towards our Sentinel Workspace. I want to keep this short and to the point, making it easier for any reader to just jump into this whenever they need to refresh some steps or for the first time setting it up.
There are some requirements you need to make sure you have. This is not a "how to deploy Sentinel"-included article, I assume you already have Sentinel deployed. Also, you need an account at AlienVault to get your API-key. You also need to be able to PIM-up to Global admin, to make the necessary applications towards our end goal.
Getting the AlienVault API-key
To get the required API-key from AlienVault, login to your user at otx.alienvault.com and navigate to the "API Integration" from the top menu. Then copy the OTX-API-KEY.
Setting up the API ingestion app registration
We need to have an application that lets us use the Microsoft Graph Security tiIndicators API to send our TI into Sentinel.
From these following steps we want to acquire: - Application (client) ID, - Directory (tenant) ID, and - a Client secret.
- Go to portal.azure.com and PIM up to Global Admin
- Choose "Azure Active Directory".
- Click "App registrations"
- "New registration"
- The only thing needed to be filled out is the Name, and choose "Accounts in this organizational directory only (... - Single tenant)" and click "Register"
- Make a copy of or note somewhere both the Application (client) ID and Directory (tenant) ID values. (For windows, activate clipboard - windows + "V" - for multiple copy and pastes in one go).
- Select "Api Permissions" from the left menu
- There go to "Add a permission" and select "Microsoft Graph" and then "Application permissions"
- Search for "threat" or scroll far down, locate the "ThreatIndicators.ReadWrite.OwnedBy" permission and check the box before clicking "Add permissions".
- Click the "Grant admin consent for YourTenantName" which will change the warning to a "Granted for..." message.
- To create a secret, go to "Certificates & secrets" on the left menu.
- Click "New client secret", create a description and set wanted expiry before clicking "Add".
- Copy the "Value" field now - you cannot retrieve it later on.
Deploying the ready-made Logic app
- Go to THIS Github page, scroll to the bottom and click the "Deploy to Azure" button.
- Preferrably you choose the subscription you have Sentinel in, and the Resource Group.
- Click "Review + Create" and then "Create".
- Next, click "Go to resource", which shows up sequentially.
- Click "Edit", make a note of the "Enable" as well.
- Paste in all the values from the previous steps.
- Scroll down to the step beginning with "Lookback Days..." and set the value to 365 days and save the app.
- Close down the "Edit" window with the "X" in the right upper corner.
- Remember from step 5 - "Enable" - click it.
- Now, run the trigger, the far left on the same menu bar! This may take a while, as it is looking back a whole year (365 days). For me, this took about an hour.
- We're not done yet. The first time this app is run, we set it to lookback for 365 days. We need to change that to "-1" to look back one day for the next scheduled runs, or a with a different setup. Your Choice!
Enjoy the feed from your AlienVault account! :)