Troubleshooting

Shodan module startup issues

If you see the following error in the logs:

karton-shodan_vulns-1                  | [ERROR] - [2024-02-04 15:35:04,622] shodan_vulns.py - in <module>() (line 102): Shodan API key is required to start the Shodan vulnerability module.
karton-shodan_vulns-1                  | [ERROR] - [2024-02-04 15:35:04,622] shodan_vulns.py - in <module>() (line 103): Don't worry - all other modules can be used without this API key.

That means the Shodan module wasn’t able to start because an API key was not configured. To fix this, provide the SHODAN_API_KEY configuration variable, see Configuration options.

Issues when scanning localhost

As Artemis modules are Docker containers, you won’t be able to scan your host’s localhost. Entering localhost as the target to scan will cause the modules to scan themselves.

Results disappeared after migrating from an old version of Artemis

If you updated from an old version of Artemis and don’t see the scanned targets or scan results anymore, contact us on Discord: https://discord.gg/GfUW4mZmy9.

Running tests locally

If you encounter problem with DNS while running scripts/tests you may need to set it explicitly. Example error you may encounter:

# main error will be:
failed to solve: process "/bin/sh -c apk add --no-cache --virtual .build-deps gcc git libc-dev make libffi-dev libpcap-dev postgresql-dev && ...
# exact reason:
fatal: unable to access 'https://github.com/CERT-Polska/checkdmarc/': Could not resolve host: github.com
fatal: could not fetch adddeb056c05d9fa69f4b34d06ae5fcb21948490 from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

According to https://docs.docker.com/engine/network/, containers should use the same DNS servers as the host by default But there are known issues on Ubuntu distribution regarding to that.

To resolve that you can e.g:

# add the following line to /etc/docker/daemon.json
{"dns": ["8.8.8.8"]}
# restart your docker
sudo systemctl restart docker