Thank you for your interest in this integration between Trend Micro’s Deep Security and AWS Security Hub. This integration was created early in the product lifecycle of AWS Security Hub and was made available during the preview phase of the service.
During the preview phase, this integration was tested in a number of scenarios with an assortment of customers. Based on those experiences, we’re retiring this integration as we look at ways to make the overall experience smoother and the focus on generating actionable findings.
If you have a use case you’d like to highlight to the team or feedback on these efforts, please email [email protected].
Send Deep Security security events to AWS Security Hub.
- Create an organization account for an employee.
- Create policy & assume role as per these instructions.
- Browse to the Security Hub page in your account.
- Click "Integrations" -> enable "Deep Security"
Note: If you're using multiple accounts, you will need to configure your Master and Member accounts.
- Create a new SNS topic.
- Create a new IAM account with programmatic access.
- Give the account
sns:publish
access to the newly created SNS topic.
- Create a Lambda with
basic Lambda permissions
. - Add rule to allow
BatchImportFindings
.
- Set up SNS as per these instructions.
- Create a policy with the desired options enabled.
- Enable the AWS connector.
- Create a basic Lambda script, like so:
import json def lambda_handler(event, context): print('Received SNS notification. Payload will be printed below:') print(json.dumps(event))
- Subscribe the Lambda to the SNS topic.
- From within Deep Security, run a DS SNS topic test.
- Check the Lambda's CloudWatch logs to ensure the test was successful.
-
Use pip to download the latest version of boto3 and put it into a directory called
python
:cd /tmp sudo pip3 install --target=/tmp/python boto3 zip -r boto3.zip python/
Note: For convenience, this has already been done and can be found in
lambda/boto3.zip
. -
Upload the zip file as a Lambda layer.
-
Add the layer to the newly created Lambda.
-
Copy and paste the contents of
lambda/ds-sec-hub.py
script into the above mentioned Lambda.
-
Spin up a Windows instance.
-
Install the Deep Security agent.
-
Reboot in order to enable anti-malware features.
-
Create a text file on the desktop. Paste the following EICAR string and save the file:
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
-
Check Security Hub for an entry.
If no entries appear in Security Hub, check the Lambda's log.
This is a re-write of an existing script. This version includes additonal features and logging outputs.