AgentSkillsCN

windows-parental-monitor

在 Windows 11 上监控 Edge 浏览器历史记录,以实现家长监管。提取浏览活动,标记潜在有害内容,并生成每周报告。需通过 SSH 密钥访问目标 Windows 机器,并确保已启用 OpenSSH。

SKILL.md
--- frontmatter
name: windows-parental-monitor
description: Monitor Edge browser history on Windows 11 for parental oversight. Extracts browsing activity, flags concerning content, and generates weekly reports. Requires SSH key access to target Windows machine with OpenSSH enabled.

Windows Parental Monitor

Monitor Edge browser history on Windows 11 computers for parental oversight.

Prerequisites

  • Windows 11 with OpenSSH server enabled
  • SSH key authentication configured for target user
  • Python3 with sqlite3 support on monitoring machine

Setup

1. Enable OpenSSH on Windows 11 (Target Machine)

powershell
# Install OpenSSH server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

# Start and enable service
Start-Service sshd
Set-Service -Name sshd -StartupType Automatic

2. Configure SSH Key Access

On the monitoring machine, generate a key:

bash
ssh-keygen -t ed25519 -C "parental-monitor" -f ~/.ssh/parental_monitor

On the Windows target machine, add the public key:

powershell
# For standard user
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.ssh"
Set-Content -Path "$env:USERPROFILE\.ssh\authorized_keys" -Value "<public-key-content>"

# For admin user (also add to)
Add-Content -Path "$env:ProgramData\ssh\administrators_authorized_keys" -Value "<public-key-content>"

3. Test Connection

bash
ssh -i ~/.ssh/parental_monitor <username>@<windows-ip> "whoami"

Usage

Generate Single Report

bash
# Copy history from Windows
scp -i ~/.ssh/parental_monitor '<username>@<ip>:/C:/Users/<username>/AppData/Local/Microsoft/Edge/User Data/Default/History' /tmp/history

# Analyze
python3 scripts/analyze_history.py /tmp/history

Automated Weekly Reports

Use the provided script with cron:

bash
scripts/weekly_report.sh <username> <windows-ip> <ssh-key-path>

Configuration

Edit scripts/analyze_history.py to customize:

  • CONCERNING_KEYWORDS — add/remove flagged terms
  • SAFE_DOMAINS — whitelist trusted sites
  • Report output format

Data Location

Edge stores history at:

code
C:\Users\<username>\AppData\Local\Microsoft\Edge\User Data\Default\History

This is a SQLite database with tables:

  • urls — browsing history
  • visits — visit details with timestamps

Privacy Notes

  • This tool is intended for parental monitoring of minors
  • Consider transparent monitoring and discussing online safety
  • Microsoft Family Safety provides built-in alternatives
  • Reports should be stored securely and reviewed only by parents/guardians