{"id":26577939,"url":"https://github.com/dkydivyansh/stealthmon","last_synced_at":"2026-02-15T08:32:49.075Z","repository":{"id":283849494,"uuid":"953107144","full_name":"dkydivyansh/stealthmon","owner":"dkydivyansh","description":"StealthMon is a Python module that helps detect whether a browser is running in normal or Incognito/Private mode and monitors search queries from the system. It is designed for privacy monitoring, parental control, cybersecurity research, and system audits.","archived":false,"fork":false,"pushed_at":"2025-03-22T20:29:58.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-28T00:43:42.530Z","etag":null,"topics":["cybersecurity","python","pythonmodule"],"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/dkydivyansh.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}},"created_at":"2025-03-22T15:31:51.000Z","updated_at":"2025-03-22T20:29:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"126df34d-4cf8-4c70-9d65-013c28f9f6f7","html_url":"https://github.com/dkydivyansh/stealthmon","commit_stats":null,"previous_names":["dkydivyansh/stealthmon"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dkydivyansh/stealthmon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkydivyansh%2Fstealthmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkydivyansh%2Fstealthmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkydivyansh%2Fstealthmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkydivyansh%2Fstealthmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkydivyansh","download_url":"https://codeload.github.com/dkydivyansh/stealthmon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkydivyansh%2Fstealthmon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29473718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T06:58:05.414Z","status":"ssl_error","status_checked_at":"2026-02-15T06:58:05.085Z","response_time":118,"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":["cybersecurity","python","pythonmodule"],"created_at":"2025-03-23T04:18:10.146Z","updated_at":"2026-02-15T08:32:49.071Z","avatar_url":"https://github.com/dkydivyansh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StealthMon 🕵️‍♂️🔍\r\n\r\n**Detect Incognito Mode \u0026 Monitor Browser Search Queries**\r\n\r\n## Overview\r\nStealthMon is a Python module that helps detect whether a browser is running in **Incognito/Private mode** and monitors **search queries** from the system. It is designed for **privacy monitoring, parental control, cybersecurity research, and system audits**.\r\n\r\n## Features\r\n✅ **Detect Incognito Mode** – Identify when browsers like **Chrome, Firefox, Edge, Brave, or Opera** are running in private mode.\r\n✅ **Monitor Search Queries** – Track user searches made on **Google, Bing, DuckDuckGo, and more**.\r\n✅ **Alert System** – Configurable alerts when specific queries are detected.\r\n✅ **Multi-Threading Support** – Efficient monitoring with background threads.\r\n✅ **Visual Notifications** – Optional UI components for alerts and notifications.\r\n✅ **Cross-Platform** – Works on **Windows \u0026 Linux** (Mac support coming soon).\r\n✅ **Lightweight \u0026 Easy to Use** – Simple Python module with clear API.\r\n\r\n## Use Cases\r\n🔹 **Parental Control** – Keep track of Incognito browsing on a child's system.\r\n🔹 **Cybersecurity \u0026 Monitoring** – Detect stealth browsing behavior in workplaces or shared systems.\r\n🔹 **Forensics \u0026 Investigations** – Useful for analyzing browser activity on compromised systems.\r\n\r\n## Installation\r\n```bash\r\npip install stealthmon\r\n```\r\n\r\nOr install from source:\r\n```bash\r\ngit clone https://github.com/yourusername/stealthmon\r\ncd stealthmon\r\npip install -e .\r\n```\r\n\r\n## Dependencies\r\nStealthMon requires the following dependencies:\r\n- Python 3.7+\r\n- psutil\r\n- pywin32 (Windows only)\r\n- tkinter (for UI components)\r\n- pygame (for sound alerts)\r\n\r\n## Quick Start\r\n```python\r\n# You can use either StealthMon or StealthMonitor (they're the same)\r\nfrom stealthmon import StealthMon\r\n# or\r\nfrom stealthmon import StealthMonitor\r\n\r\n# Initialize the monitor\r\nmonitor = StealthMon()\r\n\r\n# Check for incognito mode for a specific browser\r\nis_chrome_incognito = monitor.check_browser(\"chrome\")\r\nprint(f\"Chrome: {'Incognito Mode' if is_chrome_incognito else 'Normal Mode'}\")\r\n\r\n# Check all browsers\r\nfor browser in [\"chrome\", \"firefox\", \"edge\", \"opera\"]:\r\n    try:\r\n        is_incognito = monitor.check_browser(browser)\r\n        print(f\"{browser}: {'Incognito Mode' if is_incognito else 'Normal Mode'}\")\r\n    except Exception as e:\r\n        print(f\"{browser}: Error - {str(e)}\")\r\n\r\n# Start monitoring with a callback function\r\ndef handle_results(results, queries):\r\n    # results = dict of browser -\u003e incognito status\r\n    for browser, is_incognito in results.items():\r\n        if is_incognito:\r\n            print(f\"Incognito detected: {browser}\")\r\n    \r\n    # queries = dict of browser -\u003e query data\r\n    for browser, data in queries.items():\r\n        for query_data in data.get('queries', []):\r\n            query = query_data.get('query', '')\r\n            engine = query_data.get('engine', '')\r\n            print(f\"Search query detected: {query} on {engine}\")\r\n\r\n# Start continuous monitoring with 1 second interval\r\nmonitor.start(interval=1.0, callback=handle_results)\r\n\r\n# To stop monitoring\r\n# monitor.stop()\r\n```\r\n\r\n### Using Simplified API\r\n```python\r\n# You can also use the simplified API functions\r\nfrom stealthmon import create_monitor, stop_monitoring\r\n\r\n# Start monitoring with default settings (checks all browsers every 1 second)\r\nresults = create_monitor()\r\n\r\n# Or customize the monitoring\r\ndef handle_results(results, queries):\r\n    # Process monitoring results\r\n    pass\r\n\r\nresults = create_monitor(browser=\"chrome\", interval=2.0, callback=handle_results)\r\n\r\n# Later, stop the monitoring\r\nstop_monitoring()\r\n```\r\n\r\n## Advanced Usage\r\n\r\n### Tracking Specific Search Queries\r\n```python\r\nfrom stealthmon import StealthMon\r\n\r\n# Initialize with configuration\r\nmonitor = StealthMon()\r\n\r\n# Define a callback function that filters specific queries\r\ndef handle_results(results, queries):\r\n    for browser, data in queries.items():\r\n        for query_data in data.get('queries', []):\r\n            query = query_data.get('query', '').lower()\r\n            if \"python tutorial\" in query:\r\n                print(f\"Educational search detected: {query}\")\r\n\r\n# Start monitoring with the callback\r\nmonitor.start(callback=handle_results)\r\n```\r\n\r\n### Customizing Detection Behavior\r\n```python\r\nfrom stealthmon import StealthMon\r\n\r\n# Custom configuration\r\nconfig = {\r\n    \"browsers_to_monitor\": [\"chrome\", \"firefox\", \"edge\"],\r\n    \"check_interval\": 3,  # seconds\r\n    \"search_engines\": {\r\n        \"google\": {\r\n            \"domain_patterns\": [\"google.com\"],\r\n            \"title_pattern\": r\"(.+) - Google Search\"\r\n        },\r\n        \"bing\": {\r\n            \"domain_patterns\": [\"bing.com\"],\r\n            \"title_pattern\": r\"(.+) - Bing\"\r\n        }\r\n    }\r\n}\r\n\r\n# Initialize with custom config\r\nmonitor = StealthMon(config=config)\r\n\r\n# Start monitoring\r\nmonitor.start()\r\n```\r\n\r\n### Command Line Interface\r\nStealthMon also includes a command-line interface:\r\n\r\n```bash\r\n# Check all browsers once\r\nstealthmon --once\r\n\r\n# Monitor specific browser continuously\r\nstealthmon --browser chrome\r\n\r\n# Set custom interval\r\nstealthmon --interval 2.5\r\n\r\n# Quiet mode (no continuous display)\r\nstealthmon --quiet\r\n```\r\n\r\n## Error Handling\r\nStealthMon includes robust error handling for various scenarios:\r\n- Browser detection failures\r\n- Privilege or permission issues\r\n- Missing dependencies\r\n- Platform compatibility issues\r\n\r\n## Contributing\r\nWe welcome contributions! If you want to enhance the project, feel free to submit issues and pull requests.\r\n\r\n## License\r\nMIT License - See LICENSE file for details ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkydivyansh%2Fstealthmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkydivyansh%2Fstealthmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkydivyansh%2Fstealthmon/lists"}