Importing reports via AWS Lambda Function within AWS Security Hub
To send scanning data to AWS Security Hub on Appsec Portal
This is achieved using an AWS Lambda function written in Python. The function extracts an API key from AWS Secrets Manager, constructs a request with scanning data, and sends it to the specified Appsec Portal address.
Step 1: Integration Preparation
AWS Lambda: Ensure you have a configured and functioning AWS Lambda function
AWS Secrets Manager: Create a secret in AWS Secrets Manager containing the API key for accessing Appsec Portal. Ensure you have read access rights to this secret
Step 2: Creating AWS Lambda Function
Navigate to the AWS Lambda console
Create a new Lambda function according to your requirements
Make sure the function has the necessary permissions to access Secrets Manager and make HTTP requests
Insert the code into the code editor of your function:
Replace "<secret_name>" with the name of the secret in AWS Secrets Manager containing your API key for Appsec Portal
Replace "<portal_address>" with the address of your Appsec Portal
Save the changes made to the function
Step 3: Running the Function
In the "Test" section of the AWS Lambda console, create a test event with content similar to your report to test the function
If the function passes testing successfully, publish it
Congratulations! Your function is now ready to send reports to Appsec Portal
Last updated