{"id":31645441,"url":"https://github.com/greycloudss/greave","last_synced_at":"2025-10-07T05:13:56.127Z","repository":{"id":312984766,"uuid":"1049550033","full_name":"greycloudss/Greave","owner":"greycloudss","description":"Greave is a fast, multi-mode scanner for locating sensitive information in both local filesystems and Confluence pages.","archived":false,"fork":false,"pushed_at":"2025-09-16T09:32:27.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T11:50:12.814Z","etag":null,"topics":["armourer","confluence","crawler","python","reconnaissance","security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greycloudss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2025-09-03T06:31:51.000Z","updated_at":"2025-09-16T09:32:31.000Z","dependencies_parsed_at":"2025-09-03T08:32:00.248Z","dependency_job_id":"f760740d-adb8-42d6-9a3a-93a086dfbcf0","html_url":"https://github.com/greycloudss/Greave","commit_stats":null,"previous_names":["greycloudss/greaves"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/greycloudss/Greave","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greycloudss%2FGreave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greycloudss%2FGreave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greycloudss%2FGreave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greycloudss%2FGreave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greycloudss","download_url":"https://codeload.github.com/greycloudss/Greave/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greycloudss%2FGreave/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278722757,"owners_count":26034463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["armourer","confluence","crawler","python","reconnaissance","security"],"created_at":"2025-10-07T05:13:45.620Z","updated_at":"2025-10-07T05:13:56.122Z","avatar_url":"https://github.com/greycloudss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Greave\n\nGreave is a fast, multi-mode scanner for locating sensitive information in both local filesystems and Confluence pages.\n\n\u003ePart of the **Armour series**  \n\n---\n\n## Overview\n\nGreave is designed for environments where credentials, tokens, and identifiers may be accidentally committed to text files or embedded in documentation.\nThe scanner provides two distinct modes:\n\n* **Filesystem mode (`fs`)**: recursively walks directories, scanning files that are likely to contain readable text.\n* **HTTP mode (`http`)**: connects to Confluence through its REST API, scanning pages, spaces, and optionally historical versions.\n\nIn both modes, Greave applies targeted regular expressions to detect identifiers, long random passwords, and password-related keywords. When suspicious combinations are found, the tool records the findings with surrounding context for later review.\n\n---\n\n## Features\n\n* Two scanning modes: filesystem and Confluence API.\n* Multi-threaded workers for fast scanning.\n* Configurable parameters: worker count, retries, backoff, context length, maximum file size, and more.\n* Deduplicated results to avoid repetition.\n* Outputs in both CSV and NDJSON formats.\n* Optional scanning of historical Confluence versions.\n* Lightweight: only uses the Python standard library.\n\n---\n\n## Installation\n\nClone the repository and enter the project directory:\n\n```bash\ngit clone https://github.com/greycloudss/Greave.git\ncd Greave\n```\n\nGreave requires Python 3.8 or later. It has no external dependencies.\n\n---\n\n## Usage\n\n### Filesystem Mode\n\n```bash\npython greave.py \\\n  --mode fs \\\n  --root /path/to/scan \\\n  --workers 24 \\\n  --csv results_fs.csv \\\n  --ndjson results_fs.ndjson\n```\n\nUseful options:\n\n* `--include-ext` / `--exclude-ext`: filter file extensions.\n* `--max-bytes`: limit bytes read per file.\n* `--follow-symlinks`: traverse symlinked directories.\n\n---\n\n### HTTP Mode (Confluence)\n\n```bash\npython greave.py \\\n  --mode http \\\n  --base-url https://example.atlassian.net/wiki \\\n  --email user@example.com \\\n  --api-token \u003ctoken\u003e \\\n  --workers 16 \\\n  --include-history \\\n  --csv results_http.csv \\\n  --ndjson results_http.ndjson\n```\n\nUseful options:\n\n* `--space`: restrict scan to a space key.\n* `--max-versions`: control historical versions scanned.\n* `--auth`: select authentication method (`auto`, `basic`, `bearer`).\n\n---\n\n## Output\n\nResults are written in two formats:\n\n* **CSV**: for quick inspection or spreadsheet analysis.\n* **NDJSON**: newline-delimited JSON, ideal for automated ingestion.\n\nEach record contains:\n`space`, `page_id`, `page_title`, `version`, `version_when`,\n`match_type`, `id_value`, `id_literal`, `password_value`,\n`context`, `url`\n\n---\n\n## Threat Model\n\nGreave is designed to detect accidental exposure of secrets in human-readable text. It is effective against:\n\n* Long random passwords embedded in files or documentation.\n* Identifiers (such as service request numbers) near password keywords.\n\nIt does not protect against:\n\n* Encrypted or binary data leaks.\n* Secrets stored in compiled artifacts or non-text formats.\n* Active network threats or credential misuse once exposed.\n\nGreave is intended as a preventative and auditing tool, not as a replacement for proper access controls or secret management systems.\n\n---\n\n## License\n\nGreave is released under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreycloudss%2Fgreave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreycloudss%2Fgreave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreycloudss%2Fgreave/lists"}