Can Evident detect if an agent is deployed in an EC2 / VM instance?
0
Created On 09/26/18 13:44 PM - Last Modified 07/19/22 23:07 PM
Symptom
Can Evident detect if an agent is deployed in an EC2 / VM instance?
Resolution
None of Evident's built-in signatures detect resources within EC2 / VM instances. In general, Evident's built-in signature will only detect and report resources within the infrastructure level.
Evident itself cannot detect resources within an instance either; however, custom signatures, in conjunction with AWS Lambda function, could allow Evident to generate alerts based on information retrieved from within an EC2 instance. Here is a broad overview of how the steps:
- Create an IAM role with basic AWSLambdaBasicExecutionRole and relevant EC2 role
- Create Lambda Function with the IAM role created previously. This Lambda code will pull EC2 data and pass it on to Evident.
- Add extra permission to the existing Evident Service Role role so that it can invoke the Lambda code. This is done by creating a managed policy with Lambda invoke access and attach it to the existing Evident Service Role.
- Modify the Lambda Function to retrieve relevant information from target EC2 instances.
- Create Custom Signature to invoke the Lambda Function and generate alerts based on the results