Shadow AI Monitor
A professional web dashboard system for tracking employee AI tool usage, identifying data exposure risks, and measuring PIPEDA compliance.
What This Skill Does
Generates enterprise-grade HTML dashboards showing:
- - 📊 AI Tool Usage Analytics - Track which tools employees use (ChatGPT, Claude, Gemini, Copilot, Midjourney, Grok, Perplexity, Cursor, GitHub Copilot)
- ⚠️ Risk Analysis - Classify data exposure as Low/Medium/High risk
- 📋 Compliance Scoring - PIPEDA compliance score (0-100) with detailed requirement breakdown
- 👥 Employee Insights - Anonymized usage patterns and heatmaps
- 📈 Trend Tracking - Daily usage trends and event logs
- 📄 Board-Ready Reports - PDF export with professional styling
Perfect For
- - Security Teams monitoring shadow AI adoption
- CTOs assessing compliance gaps
- Legal/Compliance teams tracking data exposure
- Sales Teams demoing AI governance products
- Consultants delivering AI risk assessments
Quick Start
Generate a demo dashboard:
CODEBLOCK0
Open shadow-ai-dashboard.html in your browser.
Features
🎯 Interactive Dashboard
Click to Explore:
- - Employee Bars → See top 3 riskiest events, tools used, data categories, dates
- Compliance Score → View 5 PIPEDA requirements, pass/fail status, specific fixes
- Export Button → Generate PDF with letterhead styling
Key Metrics:
- - PIPEDA compliance score (color-coded: green ≥85, yellow ≥70, red <70)
- Risk event breakdown (High/Medium/Low)
- Top 3 AI tools by usage
- Top 10 employees (anonymized)
Visualizations:
- - Bar charts: Tool usage, employee activity
- Doughnut chart: Risk distribution
- Line chart: Daily trends
- Heat map: Employee usage intensity
- Scrollable event log (last 20 events, high-risk highlighted)
📋 Personalized Recommendations
Auto-generated advice based on actual data patterns:
- - References specific employees and percentages
- Tool-specific recommendations (e.g., "ChatGPT accounts for 48% of usage")
- Compliance-specific action items
- Example: "Employee 5 generated 8 high-risk events involving client matters — review recommended"
🔒 PIPEDA Compliance Analysis
Detailed breakdown of 5 core requirements:
- 1. Consent for Collection
- Limiting Use, Disclosure & Retention
- Safeguards
- Openness
- Individual Access
Each shows:
- - Pass/Fail status
- Requirement description
- Specific action items using your actual data
📊 Demo Data Generator
Creates realistic data for a 50-person Canadian organization:
Configurable:
- - Company name (default: Morrison & Associates)
- Employee count
- AI tools tracked
- Data categories (Client Legal, Financial, Health, Personal, etc.)
- Risk distribution
- Time period (last 7 days default)
Realistic Patterns:
- - Mix of 9 different AI tools
- Varied risk levels (~25% high, ~35% medium, ~40% low)
- Employee anonymization (Employee 1, Employee 2, etc.)
- Concerning patterns for demo impact
Files
CODEBLOCK1
Installation
Via ClawHub:
CODEBLOCK2
Manual:
CODEBLOCK3
Usage
Basic Demo Dashboard
CODEBLOCK4
This generates:
- -
shadow-ai-data.json - Raw usage data - INLINECODE2 - Interactive dashboard
Customizing Demo Data
Edit scripts/generate_demo_data.js to customize:
Company Name:
CODEBLOCK5
Employee Count:
CODEBLOCK6
AI Tools Tracked:
CODEBLOCK7
Data Categories:
CODEBLOCK8
Automated Weekly Reports
Set up with OpenClaw cron:
CODEBLOCK9
Technical Details
Data Structure
CODEBLOCK10
Risk Scoring
High Risk:
- - Client legal matters
- Financial records
- Health information
Medium Risk:
- - Personal information
- Internal memos
- Proprietary data
Low Risk:
- - General questions
- Code templates
- Public research
Compliance Score Calculation
CODEBLOCK11
Example:
- - 268 total events
- 90 high-risk (34%) → -68 points
- 83 medium-risk (31%) → -15.5 points
- Score: 16/100
Dashboard Technology
- - Pure JavaScript - No npm install required
- Chart.js via CDN - Loaded from jsDelivr
- Dark Theme - Professional enterprise styling
- Responsive Design - Works on desktop and tablet
- Print-Optimized - Clean PDF export with letterhead
Use Cases
1. CTO Demo
Script:
"This is Morrison & Associates, a 50-person law firm. Over 7 days, we detected 268 AI tool events. Their PIPEDA compliance score is 16/100 because 34% of interactions involved client legal matters and health records shared with unapproved AI tools."
Click compliance score → Show specific PIPEDA failures
Click Employee 38 → Show their risky events
Click Export → Board-ready PDF
2. Security Assessment
Generate dashboard with your organization's data:
- 1. Monitor Slack/Teams/Email for AI tool mentions
- Log to JSON format matching data structure
- Run dashboard generator
- Present findings to security team
3. Sales Presentation
Demo realistic data showing:
- - Concerning compliance gaps
- Specific risk patterns
- Clear ROI through risk reduction
- Professional, board-ready output
4. Compliance Audit
Track progress over time:
- - Generate weekly snapshots
- Compare compliance scores
- Identify trends (improving/worsening)
- Document remediation efforts
Security & Privacy
✅ No External API Calls - All processing local
✅ No Data Collection - Demo data never leaves your machine
✅ No Credentials Required - Pure JavaScript execution
✅ Anonymized Data - Employee IDs, no PII in demo
✅ Open Source - Review all code before running
Requirements
- - Node.js (any recent version)
- Web Browser (Chrome, Firefox, Safari, Edge)
- No npm packages - Uses only Node.js built-ins
Roadmap
Future enhancements:
- - [ ] Real-time monitoring integration
- [ ] Multi-company comparison
- [ ] Historical trend analysis
- [ ] Custom compliance frameworks (GDPR, HIPAA, SOC 2)
- [ ] Email delivery of reports
- [ ] Slack/Teams integration
- [ ] Live data ingestion from DLP tools
Support & Contribution
- - Issues: Report bugs or request features on ClawHub
- Questions: OpenClaw Discord community
- Contributions: Submit improved visualizations, compliance frameworks, or data sources
License
MIT - Free for personal and commercial use
Credits
Built with OpenClaw by the automation engineering community.
Version: 1.0.0
Author: Automation Engineers
Category: Security, Compliance, Analytics
Tags: AI monitoring, PIPEDA, compliance, security, dashboard
Shadow AI Monitor(影子AI监控系统)
一个用于追踪员工AI工具使用情况、识别数据暴露风险并衡量PIPEDA合规性的专业网页仪表盘系统。
技能功能
生成企业级HTML仪表盘,展示以下内容:
- - 📊 AI工具使用分析 - 追踪员工使用的工具(ChatGPT、Claude、Gemini、Copilot、Midjourney、Grok、Perplexity、Cursor、GitHub Copilot)
- ⚠️ 风险分析 - 将数据暴露风险分类为低/中/高风险
- 📋 合规评分 - PIPEDA合规评分(0-100分),附带详细要求分解
- 👥 员工洞察 - 匿名化使用模式与热力图
- 📈 趋势追踪 - 每日使用趋势与事件日志
- 📄 董事会级报告 - 支持PDF导出,专业样式
适用场景
- - 安全团队监控影子AI使用情况
- 首席技术官评估合规差距
- 法务/合规团队追踪数据暴露风险
- 销售团队演示AI治理产品
- 顾问提供AI风险评估服务
快速开始
生成演示仪表盘:
bash
node scripts/generatedemodata.js
node scripts/generate_dashboard.js shadow-ai-data.json
在浏览器中打开shadow-ai-dashboard.html。
功能特性
🎯 交互式仪表盘
点击探索:
- - 员工柱状图 → 查看前3个最高风险事件、使用的工具、数据类别、日期
- 合规评分 → 查看5项PIPEDA要求、通过/未通过状态、具体修复建议
- 导出按钮 → 生成带信头的PDF
关键指标:
- - PIPEDA合规评分(颜色编码:绿色≥85,黄色≥70,红色<70)
- 风险事件分类(高/中/低)
- 使用量前3的AI工具
- 前10名员工(匿名化)
可视化图表:
- - 柱状图:工具使用量、员工活跃度
- 环形图:风险分布
- 折线图:每日趋势
- 热力图:员工使用强度
- 可滚动事件日志(最近20个事件,高风险高亮显示)
📋 个性化建议
基于实际数据模式自动生成建议:
- - 引用具体员工和百分比
- 针对特定工具的建议(例如:ChatGPT占使用量的48%)
- 合规相关的具体行动项
- 示例:员工5产生了8个涉及客户事务的高风险事件——建议审查
🔒 PIPEDA合规分析
5项核心要求的详细分解:
- 1. 收集同意
- 限制使用、披露与保留
- 安全保障措施
- 公开透明
- 个人访问权
每项要求显示:
- - 通过/未通过状态
- 要求描述
- 基于实际数据的具体行动项
📊 演示数据生成器
为50人规模的加拿大组织创建真实数据:
可配置项:
- - 公司名称(默认:Morrison & Associates)
- 员工数量
- 追踪的AI工具
- 数据类别(客户法律、财务、健康、个人等)
- 风险分布
- 时间周期(默认最近7天)
真实模式:
- - 混合使用9种不同AI工具
- 不同风险等级(约25%高风险、35%中风险、40%低风险)
- 员工匿名化(员工1、员工2等)
- 演示效果所需的关注模式
文件结构
shadow-ai-monitor/
├── SKILL.md # 本文件
├── scripts/
│ ├── generatedemodata.js # 演示数据生成器
│ └── generate_dashboard.js # HTML仪表盘生成器
安装方式
通过ClawHub安装:
bash
clawhub install shadow-ai-monitor
手动安装:
bash
mkdir -p ~/.openclaw/skills
cd ~/.openclaw/skills
下载并解压技能文件
使用方法
基础演示仪表盘
bash
cd ~/.openclaw/workspace # 或您的工作目录
node ~/.openclaw/skills/shadow-ai-monitor/scripts/generatedemodata.js
node ~/.openclaw/skills/shadow-ai-monitor/scripts/generate_dashboard.js shadow-ai-data.json
open shadow-ai-dashboard.html # 或在Finder/资源管理器中双击
生成的文件:
- - shadow-ai-data.json - 原始使用数据
- shadow-ai-dashboard.html - 交互式仪表盘
自定义演示数据
编辑scripts/generatedemodata.js进行自定义:
公司名称:
javascript
const output = {
company: 您的公司名称,
// ...
};
员工数量:
javascript
const employees = Array.from({ length: 100 }, (_, i) => ({
id: 员工 ${i + 1},
// ...
}));
追踪的AI工具:
javascript
const AI_TOOLS = [
ChatGPT, Claude, Gemini, 您的自定义工具
];
数据类别:
javascript
const DATA_CATEGORIES = [
{ name: 您的类别, risk: High },
// ...
];
自动化周报
使用OpenClaw定时任务设置:
javascript
{
name: 影子AI周报,
schedule: {kind: cron, expr: 0 9 1, tz: America/Toronto},
payload: {
kind: agentTurn,
message: 生成影子AI仪表盘:1) 运行演示数据生成器 2) 生成仪表盘 3) 通过WhatsApp发送指标通知
},
sessionTarget: isolated,
delivery: {mode: announce, channel: whatsapp}
}
技术细节
数据结构
json
{
generated: 2026-02-22T15:00:00Z,
company: Morrison & Associates,
employeeCount: 50,
period: 最近7天,
events: [
{
timestamp: 2026-02-22T10:30:00Z,
employee: 员工1,
employeeRole: 高级合伙人,
tool: ChatGPT,
dataCategory: 客户法律事务,
risk: High
}
],
metrics: {
totalEvents: 268,
topTools: [[ChatGPT, 89], [Claude, 56]],
riskCounts: {Low: 95, Medium: 83, High: 90},
complianceScore: 68,
recommendations: [...]
}
}
风险评分
高风险:
中风险:
低风险:
合规评分计算
基础分:100分
扣分:每1%高风险事件扣2分
扣分:每1%中风险事件扣0.5分
范围:0-100分
示例:
- - 268个总事件
- 90个高风险(34%)→ 扣68分
- 83个中风险(31%)→ 扣15.5分
- 得分:16/100分
仪表盘技术
- - 纯JavaScript - 无需npm安装
- 通过CDN加载Chart.js - 从jsDelivr加载
- 深色主题 - 专业企业风格
- 响应式设计 - 支持桌面和平板
- 打印优化 - 带信头的PDF导出
使用场景
1. 首席技术官演示
脚本:
这是Morrison & Associates,一家50人的律师事务所。在7天内,我们检测到268个AI工具事件。他们的PIPEDA合规评分为16/100分,因为34%的交互涉及客户法律事务和健康信息,这些信息被分享给未经批准的AI工具。
点击合规评分 → 显示具体的PIPEDA违规项
点击员工38 → 显示其风险事件
点击导出 → 生成董事会级PDF
2. 安全评估
使用组织数据生成仪表盘:
- 1. 监控Slack/Teams/邮件中提及的AI工具
- 按照数据结构格式记录为JSON
- 运行仪表盘生成器
- 向安全团队展示结果
3. 销售演示
演示真实数据展示:
- - 令人关注的合规差距
- 具体的风险模式
- 通过降低风险实现