Replies: 3 comments 1 reply
-
Hi @varunupps ! I'll take a look. |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks @nikpivkin - I noticed it works if the --aws-region switch is used. It's currently not specified as a required parameter |
Beta Was this translation helpful? Give feedback.
1 reply
-
Track #7512 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Given an ebs snapshot for scanning
When a vulnerability scan is run against the snapshot
A fatal error occurs due to trivy calling a malformed EBS endpoint (https://ebs..amazonaws.com/snapshots/snap-04adadasd69521a6d94/blocks)
Notice the double dot .. in the hostname, which is not a valid domain format.
Desired Behavior
For EBS snapshot scan to work
Actual Behavior
ubuntu@ip-172-31-40-120:~$ trivy vm --scanners vuln ebs:snap-02a4e2069521a6d91
2024-09-15T14:42:47Z INFO Timeout is set to less than 30 min - upgrading to 30 min for this command.
2024-09-15T14:42:47Z INFO [db] Need to update DB
2024-09-15T14:42:47Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
53.23 MiB / 53.23 MiB [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 31.12 MiB p/s 1.9s
2024-09-15T14:42:49Z INFO [vuln] Vulnerability scanning is enabled
2024-09-15T14:42:49Z FATAL Fatal error vm scan error: scan error: scan failed: failed analysis: EBS open error: EBS error: operation error EBS: ListSnapshotBlocks, https response error StatusCode: 0, RequestID: , request send failed, Get "https://ebs..amazonaws.com/snapshots/snap-02a4e2069521a6d91/blocks": dial tcp: lookup ebs..amazonaws.com: no such host
Reproduction Steps
1. Install trivy version 0.55.1 2. Run scan against an EBS snapshot, for example: trivy vm --scanners vuln ebs:snap-02a4e2069521a6d91 3. Encounter error Ec2 instance is assigned the correct IAM instance profile with relevant permissions
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
ubuntu 22.0
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions