VirusTotal scans for AWS CLI creating false positives
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 4.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
Description
### Describe the bug
We've recently gotten a deluge of malware alerts from VirusTotal and its scanners and even third parties (ReversingLabs) flagging certain versions of the AWS CLI as malware. Some file paths detected are:
- /root/awscliv2.zip
- /usr/local/aws-cli/v2/2.18.0/dist/aws
- /aws/aws/dist/aws_completer
Pulled the versions with recent detections - 2.17.63 and 2.18.0 directly from AWS and matched the SHA-1s.
2.18.0: ([eb90309bf6a4bb23cc13892a6b058527560600c3](https://www.virustotal.com/gui/file/7cb42575bb6243d5b423a8e88b0be6489dd14c6f2a1b68204b78e1d36e4d1545))
2.17.63: ([fb7db612844de3496d805e4d2ec34e4762f6677e](https://www.virustotal.com/gui/file/c522b373953885eacad54eb5fde5e2696ad9321d02d66b23144d9e91413f9e04/summary))
3 scanners flag 2.18.0 and 6 scanners flag 2.17.63. I expect these to continue to get flagged with new releases, which is difficult for customers and could result in some teams creating broad exclusion rules for the AWS CLI if there's no easy way to reduce these detections.
I see past [discussions](https://github.com/aws/aws-cli/issues/6259#issuecomment-874991581) about this didn't get anywhere for various reasons (e.g. AWS signs with a PGP detached signature). Can AWS confirm these are false positive detections and/or recommend any way for customers or scanning vendors to avoid these false detections?
### Regression Issue
- [ ] Select this option if this issue appears to be a regression.
### Expected Behavior
Clean malware scans
### Current Behavior
Several detections in malware scanners
### Reproduction Steps
Pull the versions with recent detections - 2.17.63 and 2.18.0 directly from AWS and match the SHA-1s.
2.18.0: ([eb90309bf6a4bb23cc13892a6b058527560600c3](https://www.virustotal.com/gui/file/7cb42575bb6243d5b423a8e88b0be6489dd14c6f2a1b68204b78e1d36e4d1545))
2.17.63: ([fb7db612844de3496d805e4d2ec34e4762f6677e](https://www.virustotal.com/gui/file/c522b373953885eacad54eb5fde5e2696ad9321d02d66b23144d9e91413f9e04/summary))
### Possible Solution
Change signing method if it's a cause?
Work with third-party scanners to reduce FP detections?
Pin an advisory for this in the short term?
### Additional Information/Context
_No response_
### CLI version used
2.17.63, 2.18.0
### Environment details (OS name and version, etc.)
linux-x86_64
Contributor guide
Assessment
This issue has not been assessed yet.