Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Many attempted access to /latest/dynamic/instance-identity/document in logs? Security issue?

I am running a PHP app on AWS EC2. The server crashed with thousands of these in the logs: ErrorGET /latest/dynamic/instance-identity/document

I get that this describes the instance: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html

But is this AWS doing something, or someone trying to mess with the server?

Thanks,

like image 206
user1150316 Avatar asked Oct 15 '22 08:10

user1150316


1 Answers

This is security assessment service for applications deployed on Amazon EC2.

Amazon Inspector is an automated security assessment service that helps improve the security and compliance of applications deployed on AWS. Amazon Inspector automatically assesses applications for exposure, vulnerabilities, and deviations from best practices. After performing an assessment, Amazon Inspector produces a detailed list of security findings prioritized by level of severity. These findings can be reviewed directly or as part of detailed assessment reports which are available via the Amazon Inspector console or API.

-- AWS Inspector

Context: Even i had multiple access logs from Amazon's ip. I checked headers for these access logs.

{
    "host": "[IP_Address]",
    "connection": "keep-alive",
    "accept": "*/*",
    "accept-encoding": "gzip, deflate",
    "user-agent": "AWS Security Scanner",
    "content-length": "",
    "content-type": ""
}
like image 84
Shreyansh Panchal Avatar answered Nov 02 '22 22:11

Shreyansh Panchal