# aliens_eye
**Repository Path**: cloud-aios/aliens_eye
## Basic Information
- **Project Name**: aliens_eye
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-07-01
- **Last Updated**: 2026-07-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
ALIENS EYE
AI-OSINT Username Scanner
Advanced AI-Powered Social Media Username Finder
Scan 840+ platforms with ML-blended detection
## Highlights
- **840+ platforms** scanned asynchronously in seconds
- **ML + heuristic detection** — a trained model blended with 25 structural signals (HTTP status, DOM shape, keywords, fingerprints) instead of naive status-code checks
- **Modern terminal UI** — live progress, sorted result tables, summary panels (powered by [rich](https://github.com/Textualize/rich))
- **Proxy & Tor support** — `--proxy socks5://...` or just `--tor`
- **Site filtering** — `--site github,reddit`, `--exclude-site`, `--no-nsfw`
- **Self-check** — `aliens_eye selfcheck` validates detection accuracy against accounts known to exist
- **Retrainable** — collect your own labeled dataset and retrain the model with `aliens_eye train`
- **Reports** in JSON, CSV, HTML, and Markdown
- **Playwright fallback** for JavaScript-heavy pages (optional extra)
## Install
```bash
pip install aliens-eye
```
Optional extras:
```bash
pip install "aliens-eye[browser]" # Playwright fallback for hard pages
python -m playwright install chromium
pip install "aliens-eye[train]" # scikit-learn, for retraining the ML model
```
Or with Docker:
```bash
docker build -t aliens-eye .
docker run --rm -it aliens-eye username
```
From source:
```bash
git clone https://github.com/arxhr007/Aliens_eye.git
cd Aliens_eye
pip install -e .
```
## Usage
```bash
# Interactive prompts
aliens_eye
# Single username
aliens_eye username
# Multiple usernames
aliens_eye username1 username2
# Advanced scan level (prefix/suffix variations)
aliens_eye username -l advanced
# Only scan specific sites
aliens_eye username --site github,reddit,gitlab
# Skip NSFW sites
aliens_eye username --no-nsfw
# Route through Tor (needs a local Tor daemon)
aliens_eye username --tor
# Any HTTP or SOCKS proxy
aliens_eye username --proxy socks5://127.0.0.1:1080
# Export everything
aliens_eye username --format all --output results
# Heuristics only, no ML
aliens_eye username --no-ml
# Non-interactive preset: quick / full / aggressive
aliens_eye username --profile quick
# Plain output for scripts and CI (no colors/progress)
aliens_eye username --plain
# View results from a previous scan
aliens_eye -r results/username_advanced_20260611_120000.json
# Validate detection accuracy against known accounts
aliens_eye selfcheck
```
## How detection works
Every response is converted into a 25-dimensional feature vector: HTTP status buckets, username placement (path/title/meta), error and profile keywords, DOM structure (images, forms, profile/error CSS classes), response timing, redirect counts, and per-site fingerprint matches learned from previous scans.
Two judges then vote:
1. **Heuristic engine** — weighted scoring over the features
2. **ML model** — logistic regression trained on labeled scans of real (and deliberately fake) accounts, shipped with the package and running in pure Python (no sklearn needed at runtime)
The blended probability maps to **Found / Maybe / Not Found** with a confidence percentage. If a model file is missing or invalid, the scanner silently falls back to heuristics.
### Retraining the model
```bash
pip install "aliens-eye[train]"
# 1. Scan ground-truth accounts + random non-existent usernames to build a dataset
aliens_eye train collect --out dataset.csv --negatives 4
# 2. Fit and export the model
aliens_eye train fit --data dataset.csv --out model.json
# 3. Use it
aliens_eye username --model model.json
```
## Configuration
Aliens Eye merges a JSON config file with CLI flags (CLI wins). Search order without `--config`: `./config.json`, then the platform config dir (e.g. `~/.config/aliens_eye/config.json` on Linux, `%LOCALAPPDATA%\aliens_eye` on Windows).
```json
{
"concurrent": 50,
"timeout": 10.0,
"retries": 2,
"rate_limit_delay": 0.2,
"output_dir": "results",
"output_formats": ["json", "csv", "html", "md"],
"use_playwright": false,
"proxy": null,
"use_ml": true,
"exclude_nsfw": false,
"level": "basic"
}
```
## Outputs
Results are saved with timestamped filenames:
- `username_level_YYYYMMDD_HHMMSS.json` — full detail including per-site feature analysis
- `.csv` — flat rows for spreadsheets
- `.html` — styled standalone report
- `.md` — Markdown summary of Found/Maybe hits
## Architecture
The package lives under `src/aliens_eye/`: `core/` (scanner, detector, analyzer, http, exporter, fingerprints), `ml/` (inference, training, dataset collection), `utils/` (rich console layer), and `data/` (sites.json, trained model, ground-truth sets). For internals and flowcharts, see [WORKING.md](WORKING.md).
## Contributing
Issues and PRs welcome — adding sites to `src/aliens_eye/data/sites.json`, expanding the ground-truth set in `selfcheck.json`, or improving the model all directly improve detection. Run `pytest` and `ruff check src tests` before submitting.
## Disclaimer
This tool is for educational purposes and legitimate OSINT research only. You are responsible for complying with laws and site terms of service.