eidolon-osint 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. eidolon_osint-0.1.0/.dockerignore +34 -0
  2. eidolon_osint-0.1.0/.env.example +29 -0
  3. eidolon_osint-0.1.0/.githooks/pre-commit +59 -0
  4. eidolon_osint-0.1.0/.gitignore +224 -0
  5. eidolon_osint-0.1.0/CLAUDE.md +514 -0
  6. eidolon_osint-0.1.0/Dockerfile +44 -0
  7. eidolon_osint-0.1.0/LICENSE +661 -0
  8. eidolon_osint-0.1.0/PKG-INFO +790 -0
  9. eidolon_osint-0.1.0/README.md +94 -0
  10. eidolon_osint-0.1.0/assets/fonts/Nunito-Bold.ttf +0 -0
  11. eidolon_osint-0.1.0/assets/fonts/Nunito-Regular.ttf +0 -0
  12. eidolon_osint-0.1.0/assets/fonts/Nunito-SemiBold.ttf +0 -0
  13. eidolon_osint-0.1.0/assets/fonts/OFL.txt +93 -0
  14. eidolon_osint-0.1.0/assets/logo.png +0 -0
  15. eidolon_osint-0.1.0/bin/check.sh +154 -0
  16. eidolon_osint-0.1.0/bin/ghunt-login.sh +65 -0
  17. eidolon_osint-0.1.0/bin/lint.sh +54 -0
  18. eidolon_osint-0.1.0/bin/patch-ghunt.py +47 -0
  19. eidolon_osint-0.1.0/bin/removal.py +613 -0
  20. eidolon_osint-0.1.0/bin/remove.sh +149 -0
  21. eidolon_osint-0.1.0/bin/run.sh +164 -0
  22. eidolon_osint-0.1.0/bin/setup.sh +196 -0
  23. eidolon_osint-0.1.0/docker-compose.yml +58 -0
  24. eidolon_osint-0.1.0/docs/ROADMAP.md +167 -0
  25. eidolon_osint-0.1.0/docs/SETUP_CHECKLIST.md +106 -0
  26. eidolon_osint-0.1.0/docs/osint_agent_models_and_fixtures.md +748 -0
  27. eidolon_osint-0.1.0/eidolon/__init__.py +0 -0
  28. eidolon_osint-0.1.0/eidolon/agent/__init__.py +0 -0
  29. eidolon_osint-0.1.0/eidolon/agent/graph.py +49 -0
  30. eidolon_osint-0.1.0/eidolon/agent/nodes.py +2248 -0
  31. eidolon_osint-0.1.0/eidolon/agent/prompts.py +119 -0
  32. eidolon_osint-0.1.0/eidolon/agent/report.py +1452 -0
  33. eidolon_osint-0.1.0/eidolon/config.py +64 -0
  34. eidolon_osint-0.1.0/eidolon/core/__init__.py +0 -0
  35. eidolon_osint-0.1.0/eidolon/core/jobs.py +92 -0
  36. eidolon_osint-0.1.0/eidolon/core/logging.py +85 -0
  37. eidolon_osint-0.1.0/eidolon/core/models.py +99 -0
  38. eidolon_osint-0.1.0/eidolon/core/repository.py +91 -0
  39. eidolon_osint-0.1.0/eidolon/core/runner.py +166 -0
  40. eidolon_osint-0.1.0/eidolon/data/ai_policies.json +109 -0
  41. eidolon_osint-0.1.0/eidolon/data/attack_map.json +59 -0
  42. eidolon_osint-0.1.0/eidolon/data/bazzell_brokers.json +420 -0
  43. eidolon_osint-0.1.0/eidolon/data/broker_domains.txt +62 -0
  44. eidolon_osint-0.1.0/eidolon/data/platform_packages.json +27 -0
  45. eidolon_osint-0.1.0/eidolon/data/privacy_urls.json +940 -0
  46. eidolon_osint-0.1.0/eidolon/main.py +133 -0
  47. eidolon_osint-0.1.0/eidolon/mcp/__init__.py +2 -0
  48. eidolon_osint-0.1.0/eidolon/mcp/__main__.py +11 -0
  49. eidolon_osint-0.1.0/eidolon/mcp/server.py +163 -0
  50. eidolon_osint-0.1.0/eidolon/tools/__init__.py +0 -0
  51. eidolon_osint-0.1.0/eidolon/tools/ai_audit.py +92 -0
  52. eidolon_osint-0.1.0/eidolon/tools/apify.py +64 -0
  53. eidolon_osint-0.1.0/eidolon/tools/base.py +134 -0
  54. eidolon_osint-0.1.0/eidolon/tools/blackbird.py +94 -0
  55. eidolon_osint-0.1.0/eidolon/tools/broker_scan.py +242 -0
  56. eidolon_osint-0.1.0/eidolon/tools/commoncrawl.py +265 -0
  57. eidolon_osint-0.1.0/eidolon/tools/courtlistener.py +101 -0
  58. eidolon_osint-0.1.0/eidolon/tools/dehashed.py +202 -0
  59. eidolon_osint-0.1.0/eidolon/tools/fastpeoplesearch.py +106 -0
  60. eidolon_osint-0.1.0/eidolon/tools/ghunt.py +104 -0
  61. eidolon_osint-0.1.0/eidolon/tools/hibp.py +82 -0
  62. eidolon_osint-0.1.0/eidolon/tools/holehe.py +82 -0
  63. eidolon_osint-0.1.0/eidolon/tools/libphonenumber.py +128 -0
  64. eidolon_osint-0.1.0/eidolon/tools/maigret.py +106 -0
  65. eidolon_osint-0.1.0/eidolon/tools/mitre.py +89 -0
  66. eidolon_osint-0.1.0/eidolon/tools/numverify.py +69 -0
  67. eidolon_osint-0.1.0/eidolon/tools/opencorporates.py +96 -0
  68. eidolon_osint-0.1.0/eidolon/tools/paste.py +160 -0
  69. eidolon_osint-0.1.0/eidolon/tools/phone.py +74 -0
  70. eidolon_osint-0.1.0/eidolon/tools/privacy_url_lookup.py +173 -0
  71. eidolon_osint-0.1.0/eidolon/tools/public_records.py +61 -0
  72. eidolon_osint-0.1.0/eidolon/tools/shodan.py +146 -0
  73. eidolon_osint-0.1.0/eidolon/tools/spiderfoot.py +212 -0
  74. eidolon_osint-0.1.0/eidolon/tools/stealer.py +126 -0
  75. eidolon_osint-0.1.0/eidolon/tools/truepeoplesearch.py +127 -0
  76. eidolon_osint-0.1.0/eidolon/tools/whoxy.py +185 -0
  77. eidolon_osint-0.1.0/eidolon/utils.py +37 -0
  78. eidolon_osint-0.1.0/pyproject.toml +93 -0
  79. eidolon_osint-0.1.0/server.json +57 -0
  80. eidolon_osint-0.1.0/setup.cfg +26 -0
  81. eidolon_osint-0.1.0/tests/__init__.py +0 -0
  82. eidolon_osint-0.1.0/tests/fixtures/ai_audit_response.json +71 -0
  83. eidolon_osint-0.1.0/tests/fixtures/analysis_response.json +142 -0
  84. eidolon_osint-0.1.0/tests/fixtures/apify_response.json +57 -0
  85. eidolon_osint-0.1.0/tests/fixtures/blackbird_response.json +25 -0
  86. eidolon_osint-0.1.0/tests/fixtures/broker_google_response.json +38 -0
  87. eidolon_osint-0.1.0/tests/fixtures/commoncrawl_response.json +19 -0
  88. eidolon_osint-0.1.0/tests/fixtures/courtlistener_response.json +15 -0
  89. eidolon_osint-0.1.0/tests/fixtures/dehashed_response.json +68 -0
  90. eidolon_osint-0.1.0/tests/fixtures/error_response.json +9 -0
  91. eidolon_osint-0.1.0/tests/fixtures/fastpeoplesearch_response.json +4 -0
  92. eidolon_osint-0.1.0/tests/fixtures/ghunt_response.json +14 -0
  93. eidolon_osint-0.1.0/tests/fixtures/hibp_no_results.json +14 -0
  94. eidolon_osint-0.1.0/tests/fixtures/hibp_response.json +72 -0
  95. eidolon_osint-0.1.0/tests/fixtures/holehe_response.json +21 -0
  96. eidolon_osint-0.1.0/tests/fixtures/libphonenumber_response.json +19 -0
  97. eidolon_osint-0.1.0/tests/fixtures/maigret_response.json +35 -0
  98. eidolon_osint-0.1.0/tests/fixtures/mitre_response.json +40 -0
  99. eidolon_osint-0.1.0/tests/fixtures/numverify_response.json +7 -0
  100. eidolon_osint-0.1.0/tests/fixtures/opencorporates_response.json +15 -0
  101. eidolon_osint-0.1.0/tests/fixtures/paste_response.json +37 -0
  102. eidolon_osint-0.1.0/tests/fixtures/shodan_response.json +51 -0
  103. eidolon_osint-0.1.0/tests/fixtures/spiderfoot_response.json +59 -0
  104. eidolon_osint-0.1.0/tests/fixtures/stealer_response.json +31 -0
  105. eidolon_osint-0.1.0/tests/fixtures/truepeoplesearch_response.json +4 -0
  106. eidolon_osint-0.1.0/tests/fixtures/whoxy_response.json +53 -0
  107. eidolon_osint-0.1.0/tests/test_analysis_postprocess.py +379 -0
  108. eidolon_osint-0.1.0/tests/test_availability.py +33 -0
  109. eidolon_osint-0.1.0/tests/test_commoncrawl.py +249 -0
  110. eidolon_osint-0.1.0/tests/test_dossier.py +98 -0
  111. eidolon_osint-0.1.0/tests/test_mcp.py +88 -0
  112. eidolon_osint-0.1.0/tests/test_mitre.py +95 -0
  113. eidolon_osint-0.1.0/tests/test_ollama_optional.py +28 -0
  114. eidolon_osint-0.1.0/tests/test_pipeline.py +132 -0
  115. eidolon_osint-0.1.0/tests/test_report_status.py +38 -0
  116. eidolon_osint-0.1.0/tests/test_routing.py +58 -0
  117. eidolon_osint-0.1.0/tests/test_runner.py +74 -0
  118. eidolon_osint-0.1.0/tests/test_tools.py +654 -0
  119. eidolon_osint-0.1.0/tox.ini +46 -0
  120. eidolon_osint-0.1.0/uv.lock +3597 -0
@@ -0,0 +1,34 @@
1
+ # Build artifacts
2
+ __pycache__/
3
+ *.pyc
4
+ *.pyo
5
+ *.pyd
6
+ .Python
7
+ *.egg-info/
8
+ dist/
9
+ build/
10
+ .eggs/
11
+
12
+ # Virtual environments
13
+ .venv/
14
+ venv/
15
+ env/
16
+
17
+ # Output files (mounted at runtime)
18
+ output/
19
+
20
+ # Version control
21
+ .git/
22
+ .github/
23
+ .gitignore
24
+
25
+ # Development
26
+ .env
27
+ *.env.local
28
+ vendor/
29
+ tests/
30
+ *.md
31
+
32
+ # OS
33
+ .DS_Store
34
+ Thumbs.db
@@ -0,0 +1,29 @@
1
+ # Eidolon configuration — copy to `.env` and fill in.
2
+ # Eidolon runs locally; nothing here leaves your machine.
3
+
4
+ # ── Required: local services ─────────────────────────────────────────────────
5
+ # Ollama serves the local LLM (narrative only). Install: https://ollama.com
6
+ # ollama pull llama3.1:8b
7
+ OLLAMA_HOST=http://localhost:11434
8
+ # SpiderFoot provides broad footprinting. Run it locally (see README / Docker).
9
+ SPIDERFOOT_HOST=http://localhost:5001
10
+ SPIDERFOOT_TIMEOUT=600 # seconds to wait for a SpiderFoot scan
11
+
12
+ # ── Required: API keys ───────────────────────────────────────────────────────
13
+ HIBP_API_KEY= # haveibeenpwned.com/API/Key (paid)
14
+ APIFY_API_TOKEN= # apify.com — powers broker scanning
15
+ APIFY_ACTOR_ID= # the Apify actor used for broker lookups
16
+ SCRAPFLY_API_KEY= # scrapfly.io — scraping backend
17
+
18
+ # ── Optional: extra sources (each tool skips gracefully if unset) ────────────
19
+ SHODAN_API_KEY= # shodan.io — exposed-host intel
20
+ NUMVERIFY_API_KEY= # numverify.com — phone intel (free: 100/month)
21
+ COURTLISTENER_API_TOKEN= # courtlistener.com -> profile -> API (free)
22
+ OPENCORPORATES_API_KEY= # opencorporates.com/api_access (free tier)
23
+ WHOXY_API_KEY= # whoxy.com — reverse WHOIS by email/name/company
24
+ DEHASHED_EMAIL= # dehashed.com account email
25
+ DEHASHED_API_KEY= # dehashed.com API key (~$5/month) — leaked records
26
+
27
+ # ── Runtime ──────────────────────────────────────────────────────────────────
28
+ RESULTS_OUTPUT_PATH=output/
29
+ TEST_MODE=false # true = use fixtures, no network (for tests)
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env bash
2
+ # Pre-commit lint hook — runs the same checks as bin/lint.sh, scoped to the
3
+ # Python files you're actually committing (so it never blocks on unrelated
4
+ # pre-existing lint debt elsewhere in the tree).
5
+ #
6
+ # black + isort run over all staged .py files; flake8 + mypy run over staged
7
+ # source files only (excluding tests/), matching bin/lint.sh's scope.
8
+ #
9
+ # Enable: git config core.hooksPath .githooks (bin/setup.sh does this)
10
+ # Bypass once: git commit --no-verify
11
+ # Auto-fix: ./bin/lint.sh --fix
12
+ set -uo pipefail
13
+
14
+ cd "$(git rev-parse --show-toplevel)"
15
+
16
+ # Staged Python files (Added / Copied / Modified — ignore deletions).
17
+ ALL_PY=$(git diff --cached --name-only --diff-filter=ACM -- '*.py')
18
+ if [ -z "$ALL_PY" ]; then
19
+ exit 0
20
+ fi
21
+ # flake8 + mypy scope: drop tests/ to match bin/lint.sh (and pyproject mypy exclude).
22
+ SRC_PY=$(echo "$ALL_PY" | grep -v '^tests/' || true)
23
+
24
+ GREEN='\033[0;32m'; RED='\033[0;31m'; BOLD='\033[1m'; NC='\033[0m'
25
+ FAILED=0
26
+ TMP="$(mktemp)"
27
+
28
+ # run <name> <files> <cmd...> — skips silently if no files in scope.
29
+ run() {
30
+ local name="$1"; local files="$2"; shift 2
31
+ [ -z "$files" ] && return 0
32
+ # shellcheck disable=SC2086
33
+ if "$@" $files >"$TMP" 2>&1; then
34
+ echo -e "${GREEN}✓${NC} $name"
35
+ else
36
+ echo -e "${RED}✗ $name${NC}"
37
+ cat "$TMP"
38
+ FAILED=1
39
+ fi
40
+ }
41
+
42
+ echo -e "${BOLD}pre-commit: linting staged Python files${NC}"
43
+ run "black" "$ALL_PY" uv run black --check
44
+ run "isort" "$ALL_PY" uv run isort --check-only
45
+ run "flake8" "$SRC_PY" uv run flake8
46
+ run "mypy" "$SRC_PY" uv run --with mypy mypy
47
+
48
+ rm -f "$TMP"
49
+
50
+ if [ "$FAILED" -ne 0 ]; then
51
+ echo ""
52
+ echo -e "${RED}${BOLD}Commit blocked by lint checks.${NC}"
53
+ echo " Auto-fix formatting: ./bin/lint.sh --fix"
54
+ echo " Bypass (not advised): git commit --no-verify"
55
+ exit 1
56
+ fi
57
+
58
+ echo -e "${GREEN}${BOLD}All lint checks passed.${NC}"
59
+ exit 0
@@ -0,0 +1,224 @@
1
+ # Project-specific
2
+ .env
3
+ output/
4
+
5
+ # Byte-compiled / optimized / DLL files
6
+ __pycache__/
7
+ *.py[codz]
8
+ *$py.class
9
+
10
+ # C extensions
11
+ *.so
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ build/
16
+ develop-eggs/
17
+ dist/
18
+ downloads/
19
+ eggs/
20
+ .eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ wheels/
27
+ share/python-wheels/
28
+ *.egg-info/
29
+ .installed.cfg
30
+ *.egg
31
+ MANIFEST
32
+
33
+ # PyInstaller
34
+ # Usually these files are written by a python script from a template
35
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
36
+ *.manifest
37
+ *.spec
38
+
39
+ # Installer logs
40
+ pip-log.txt
41
+ pip-delete-this-directory.txt
42
+
43
+ # Unit test / coverage reports
44
+ htmlcov/
45
+ .tox/
46
+ .nox/
47
+ .coverage
48
+ .coverage.*
49
+ .cache
50
+ nosetests.xml
51
+ coverage.xml
52
+ *.cover
53
+ *.py.cover
54
+ .hypothesis/
55
+ .pytest_cache/
56
+ cover/
57
+
58
+ # Translations
59
+ *.mo
60
+ *.pot
61
+
62
+ # Django stuff:
63
+ *.log
64
+ local_settings.py
65
+ db.sqlite3
66
+ db.sqlite3-journal
67
+
68
+ # Flask stuff:
69
+ instance/
70
+ .webassets-cache
71
+
72
+ # Scrapy stuff:
73
+ .scrapy
74
+
75
+ # Sphinx documentation
76
+ docs/_build/
77
+
78
+ # PyBuilder
79
+ .pybuilder/
80
+ target/
81
+
82
+ # Jupyter Notebook
83
+ .ipynb_checkpoints
84
+
85
+ # IPython
86
+ profile_default/
87
+ ipython_config.py
88
+
89
+ # pyenv
90
+ # For a library or package, you might want to ignore these files since the code is
91
+ # intended to run in multiple environments; otherwise, check them in:
92
+ # .python-version
93
+
94
+ # pipenv
95
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
97
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
98
+ # install all needed dependencies.
99
+ # Pipfile.lock
100
+
101
+ # UV
102
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
103
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
104
+ # commonly ignored for libraries.
105
+ # uv.lock
106
+
107
+ # poetry
108
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
109
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
110
+ # commonly ignored for libraries.
111
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
112
+ # poetry.lock
113
+ # poetry.toml
114
+
115
+ # pdm
116
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
117
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
118
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
119
+ # pdm.lock
120
+ # pdm.toml
121
+ .pdm-python
122
+ .pdm-build/
123
+
124
+ # pixi
125
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
126
+ # pixi.lock
127
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
128
+ # in the .venv directory. It is recommended not to include this directory in version control.
129
+ .pixi
130
+
131
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
132
+ __pypackages__/
133
+
134
+ # Celery stuff
135
+ celerybeat-schedule
136
+ celerybeat.pid
137
+
138
+ # Redis
139
+ *.rdb
140
+ *.aof
141
+ *.pid
142
+
143
+ # RabbitMQ
144
+ mnesia/
145
+ rabbitmq/
146
+ rabbitmq-data/
147
+
148
+ # ActiveMQ
149
+ activemq-data/
150
+
151
+ # SageMath parsed files
152
+ *.sage.py
153
+
154
+ # Environments
155
+ .env
156
+ .envrc
157
+ .venv
158
+ env/
159
+ venv/
160
+ ENV/
161
+ env.bak/
162
+ venv.bak/
163
+
164
+ # Spyder project settings
165
+ .spyderproject
166
+ .spyproject
167
+
168
+ # Rope project settings
169
+ .ropeproject
170
+
171
+ # mkdocs documentation
172
+ /site
173
+
174
+ # mypy
175
+ .mypy_cache/
176
+ .dmypy.json
177
+ dmypy.json
178
+
179
+ # Pyre type checker
180
+ .pyre/
181
+
182
+ # pytype static type analyzer
183
+ .pytype/
184
+
185
+ # Cython debug symbols
186
+ cython_debug/
187
+
188
+ # PyCharm
189
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
190
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
191
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
192
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
193
+ # .idea/
194
+
195
+ # Abstra
196
+ # Abstra is an AI-powered process automation framework.
197
+ # Ignore directories containing user credentials, local state, and settings.
198
+ # Learn more at https://abstra.io/docs
199
+ .abstra/
200
+
201
+ # Visual Studio Code
202
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
203
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
204
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
205
+ # you could uncomment the following to ignore the entire vscode folder
206
+ # .vscode/
207
+ # Temporary file for partial code execution
208
+ tempCodeRunnerFile.py
209
+
210
+ # Ruff stuff:
211
+ .ruff_cache/
212
+
213
+ # PyPI configuration file
214
+ .pypirc
215
+
216
+ # Marimo
217
+ marimo/_static/
218
+ marimo/_lsp/
219
+ __marimo__/
220
+
221
+ # Streamlit
222
+ .streamlit/secrets.toml
223
+
224
+ .DS_Store