Real-time browser security monitoring application + Chrome extension.
BrowserShield reads actual browser data (history, bookmarks, extensions) from all installed browsers, monitors your network connections in real-time, detects ads/trackers, and uses AI agents (Gemini, OpenAI, Claude) for intelligent threat analysis.
- Real browser history from Chrome, Safari, Edge, Brave, Firefox
- Real bookmarks from all browsers
- 52+ installed apps detection with categories
- 11+ browser extensions with risk analysis
- Activity heatmap (24-hour view)
- Threat breakdown with risk scoring
- Upload/Download bandwidth tracking (real-time)
- Active connections table with process names
- Hidden packet detection β catches suspicious connections
- Data exfiltration monitoring β flags connections to pastebin, ngrok, webhook.site, etc.
- Suspicious port scanning β detects ports 4444, 1337, 31337, etc.
- Gemini, OpenAI, Claude integration
- API keys stored in
.env(never hardcoded) - Auto-analyze threats β AI activates when threats are detected
- Test any URL with AI from the dashboard
- Alerts pushed to Live Activity stream
- Click any URL in history to see full details
- Total visits, unique pages, first/last visit
- 30-day visit graph (bar chart)
- Browser breakdown (which browser visited most)
- Recent pages list on that domain
- Real-time URL monitoring as you browse
- Browser open/close detection
- WebSocket-powered live updates
- Ad/tracker detection across browsing history
- Top ad networks breakdown
- Percentage of browsing affected
- 4-tab popup: Security, Time, Extensions, Settings
- Time tracking per domain
- IP address resolution (Cloudflare DNS-over-HTTPS)
- Ad blocking β 50 declarativeNetRequest rules + DOM ad removal
- Settings β on/off toggles, custom block/allow URL lists
- Extension listing via chrome.management API
- Node.js v18+ (Download)
- npm (comes with Node.js)
- macOS, Windows, or Linux
# 1. Clone the repository
git clone https://github.com/Jalendar10/Browsershield.git
cd Browsershield
# 2. Install dependencies
npm install
# 3. Start the server
npm startThe dashboard opens at http://localhost:3847 π
# Auto-open browser extension pages
npm run install-extensionThen in the browser:
- Enable Developer mode (top-right toggle)
- Click Load unpacked
- Select the
extension/folder from this project
npm run autostartThis creates a LaunchAgent (macOS) so BrowserShield starts automatically when you log in.
To enable AI-powered threat analysis, add your API keys:
- Go to AI Settings in the sidebar
- Enter your API key(s)
- Click Save AI Settings
Create a .env file in the project root:
# Choose: gemini, openai, or claude
AI_PROVIDER=gemini
# Google Gemini (https://aistudio.google.com/apikey)
GEMINI_API_KEY=your_key_here
# OpenAI (https://platform.openai.com/api-keys)
OPENAI_API_KEY=your_key_here
# Anthropic Claude (https://console.anthropic.com/)
CLAUDE_API_KEY=your_key_hereBrowsershield/
βββ server.js # Express + WebSocket server
βββ package.json # Dependencies & scripts
βββ .env # AI API keys (not committed)
βββ public/ # Frontend dashboard
β βββ index.html # Main dashboard (9 sections)
β βββ styles.css # Dark cybersecurity theme
β βββ app.js # Frontend logic
βββ src/core/ # Backend modules
β βββ browser-detector.js # Detect installed browsers
β βββ history-reader.js # Read browser history (SQLite)
β βββ bookmark-reader.js # Read bookmarks
β βββ threat-analyzer.js # URL threat scoring
β βββ live-monitor.js # File system watcher
β βββ process-monitor.js # Running browser detection
β βββ app-monitor.js # Installed apps scanner
β βββ extension-reader.js # Browser extensions reader
β βββ ad-tracker.js # Ad/tracker analysis
β βββ network-monitor.js # Bandwidth & connection monitor
β βββ ai-agents.js # Gemini/OpenAI/Claude integration
βββ extension/ # Chrome Extension (Manifest V3)
β βββ manifest.json # Extension config
β βββ background.js # Service worker
β βββ content.js # Ad blocker & DOM scanner
β βββ popup.html/css/js # 4-tab popup UI
β βββ rules.json # 50 ad-blocking rules
β βββ icons/ # Extension icons
βββ scripts/ # Utility scripts
βββ install-extension.js # Auto-open extension pages
βββ autostart.js # Enable auto-start on login
| Command | Description |
|---|---|
npm start |
Start BrowserShield server at http://localhost:3847 |
npm run install-extension |
Open browser extension pages for installation |
npm run autostart |
Enable auto-start on login |
Full overview with 8 stat cards, detected browsers, top domains, activity heatmap, and threat breakdown.
Real-time bandwidth (upload/download), active connections table, hidden packet threat detection.
Gemini/OpenAI/Claude agent cards, API key configuration, and test URL analysis.
Click any URL for full stats: visits, unique pages, 30-day graph, browser breakdown, recent pages.
- Browser Detection β Scans for Chrome, Safari, Edge, Brave, Firefox
- Data Reading β Reads SQLite databases for history/bookmarks
- Threat Analysis β Scores every URL (0-100 risk score)
- Network Monitoring β Uses
lsof/netstatfor active connections - AI Analysis β Sends threats to AI agent for intelligent assessment
- Real-time Updates β WebSocket pushes live browsing activity
- Extension β Runs in-browser for per-page analysis and ad blocking
- 100% local β No data leaves your machine (except AI API calls if configured)
- No telemetry β Zero tracking or analytics
- Your data stays yours β All browser data is read directly from local files
MIT License β feel free to use, modify, and distribute.
Built with β€οΈ by Jalendar