{"id":36529674,"url":"https://github.com/saferwall/cli","last_synced_at":"2026-04-08T12:03:12.113Z","repository":{"id":57594036,"uuid":"373941471","full_name":"saferwall/cli","owner":"saferwall","description":"saferwall-cli :wrench: helps you scan, re-scan and download samples using the Saferwall API.","archived":false,"fork":false,"pushed_at":"2026-04-07T06:48:53.000Z","size":10486,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T08:26:08.628Z","etag":null,"topics":["cli","cli-tool","command-line-tool","malware-analysis","saferwall"],"latest_commit_sha":null,"homepage":"https://saferwall.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saferwall.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-06-04T19:30:10.000Z","updated_at":"2026-04-07T06:48:59.000Z","dependencies_parsed_at":"2024-02-08T20:50:54.620Z","dependency_job_id":"a186d10f-b387-42fc-aa17-02ee0803dc6c","html_url":"https://github.com/saferwall/cli","commit_stats":null,"previous_names":["actuallyachraf/saferwall-cli","saferwall/saferwall-cli"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/saferwall/cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saferwall%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saferwall%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saferwall%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saferwall%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saferwall","download_url":"https://codeload.github.com/saferwall/cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saferwall%2Fcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-tool","command-line-tool","malware-analysis","saferwall"],"created_at":"2026-01-12T02:59:23.634Z","updated_at":"2026-04-08T12:03:12.090Z","avatar_url":"https://github.com/saferwall.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saferwall-cli\n\nA CLI tool to interact with Saferwall.com to scan, rescan and download malware samples.\n\n## Install\n\nYou can either download pre-built binaries or build the tool yourself.\n\n```sh\ngo install github.com/saferwall/cli@latest\n```\n\n## Getting Started\n\nTo use the CLI you need a [Saferwall](https://saferwall.com) account. Run the `init` command to interactively set up your credentials:\n\n```sh\nsaferwall-cli init\n```\n\nThis launches an interactive prompt that asks for:\n- **URL** — the Saferwall API endpoint (defaults to `https://api.saferwall.com`)\n- **Username** — your Saferwall account username\n- **Password** — your Saferwall account password\n\nThe credentials are saved to `~/.config/saferwall/config.toml`. To reconfigure, delete that file and run `init` again.\n\nThe CLI can also be used with a self-hosted Saferwall deployment by providing your own API URL during init.\n\n## Usage\n\n```\nAvailable Commands:\n  init        Configure saferwall CLI credentials\n  scan        Upload and scan files\n  rescan      Rescan an existing file using its hash\n  view        View scan results for a file by its SHA256 hash\n  download    Download a sample (and its artifacts)\n  souk        Populate malware-souk database\n  version     Version number\n```\n\n### Scan\n\nUpload and scan files. Supports scanning a single file or an entire directory.\n\n```sh\n# Scan a single file\nsaferwall-cli scan /path/to/sample\n\n# Scan an entire directory\nsaferwall-cli scan /path/to/directory\n\n# Scan with parallel uploads\nsaferwall-cli scan -p 4 /path/to/directory\n\n# Force rescan if the file already exists\nsaferwall-cli scan -f /path/to/sample\n\n# Enable detonation with custom timeout and OS\nsaferwall-cli scan -d -t 30 -o win-7 /path/to/sample\n```\n\n| Flag | Short | Default | Description |\n|------|-------|---------|-------------|\n| `--force` | `-f` | `false` | Force rescan if the file already exists |\n| `--parallel` | `-p` | `1` | Number of files to scan in parallel |\n| `--enableDetonation` | `-d` | `false` | Enable detonation (dynamic analysis) |\n| `--timeout` | `-t` | `15` | Detonation duration in seconds |\n| `--os` | `-o` | `win-10` | Preferred OS for detonation (`win-7` or `win-10`) |\n\n### Rescan\n\nRescan an existing file by its SHA256 hash, or rescan a batch of hashes from a text file.\n\n```sh\nsaferwall-cli rescan \u003csha256\u003e\n```\n\n### View\n\nView scan results for a file by its SHA256 hash. Displays file identification (hashes, size), properties (format, packer, timestamps), classification verdict, and antivirus detection results. For archive files, it shows a summary table of all contained files.\n\n```sh\nsaferwall-cli view \u003csha256\u003e\n```\n\n### Download\n\nDownload a sample by its SHA256 hash, or provide a text file with one hash per line to download in batch.\n\n```sh\n# Single sample\nsaferwall-cli download \u003csha256\u003e\n\n# Batch from a text file\nsaferwall-cli download hashes.txt\n\n# Extract from zip (password: infected) instead of keeping the .zip\nsaferwall-cli download -x \u003csha256\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaferwall%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaferwall%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaferwall%2Fcli/lists"}