Repository navigation
Closed
Labels
Description
🐞 Bug report
Describe the bug
The amass scanner fails to execute. In the container logs, one can see an error. No file is written, so consequently, the parser fails as well.
Steps To Reproduce
Steps to reproduce the behavior:
- Install latest amass image with
helm upgrade --install amass secureCodeBox/amass - Submit example scan with
kubectl apply -f scanners/amass/examples/secureCodeBox.io/scan.yaml - In the logs of
caffix/amass:v4.0.3inscan-amass-securecodebox.io-...you see the errorflag provided but not defined: -json
Expected behavior
The amass container performs a scan
System (please complete the following information):
- secureCodeBox Version/Release: 4.0.1 (operator)
- OS: Ubuntu 20.04 (on WSL)
- Kubernetes Version: v1.27.4
- Docker Version: 24.0.4, build 3713ee1
Logs
Scanner
flag provided but not defined: -json
Stream closed EOF for default/scan-amass-securecodebox.io-c5sq9-bjqzz (amass)
Lurker
2023/07/24 11:23:58 Starting lurker
2023/07/24 11:23:58 Waiting for main container 'amass' to complete
2023/07/24 11:23:58 After scan is completed file '/home/securecodebox/amass-results.jsonl' will be uploaded to 'securecodebox-operator-minio.securecodebox-system.svc.cluster.local'
2023/07/24 11:23:58 Waiting for maincontainer to exit
2023/07/24 11:23:58 Main Container exited. Lurker will end as well.
2023/07/24 11:23:58 Uploading result files.
2023/07/24 11:23:58 Uploading /home/securecodebox/amass-results.jsonl
2023/07/24 11:23:58 File has a size of 0 bytes
2023/07/24 11:23:58 Failed to read file
2023/07/24 11:23:58 open /home/securecodebox/amass-results.jsonl: no such file or directory
Stream closed EOF for default/scan-amass-securecodebox.io-c5sq9-bjqzz (lurker)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
Zero3141 commentedon Jul 24, 2023
Seems to be a bug/change in amass as the error also occurs when launching the container directly.
Steps for amass according to their Docker Container setup:
docker pull caffix/amassdocker run -v OUTPUT_DIR_PATH:/.config/amass/ caffix/amass enum -d owasp.orgdocker run -v OUTPUT_DIR_PATH:/.config/amass/ caffix/amass enum -json a.json -d owasp.orgIn their User Guide, only the
dbSubcommand has the json flag. TheenumSubcommand (which we use) only has the-oflag for output into a fileZero3141 commentedon Jul 24, 2023
Our scanner implementation is only compatible with amass version
v3.23.3. In f0cd207 we upgraded tov4.0.2, which is not supported by now. Maybe revert upgrade until we adjust to the new version?Weltraumschaf commentedon Jul 25, 2023
Caused by #1821 (#1830)