Added Threat Analysis Functionality #30
Open
WalkerSchaar wants to merge 2 commits intodoitintl:mainfrom
Open
Conversation
added:
.addItem('Run Threat Analysis', 'runThreatAnalysis')
.addSeparator()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I’ve added a threat analysis report to AdminPulse that transforms raw security data into actionable insights. While AdminPulse's individual reports effectively collect configuration details, security findings can be scattered across multiple sheets with unclear risk prioritization/remediation/mitigation steps. This tool addresses this by automatically:
• Categorizing findings by attack vector (Account Compromise, Data Exfiltration, Potential Data Leaks, Lateral Movement Points, Compliance/Audit Gaps)
• Prioritizing by color-coded risk level (Critical > High > Medium > Low)
• Providing clear remediation guidance for each finding
The report consolidates data from 8 AdminPulse reports (Users, OAuth Tokens, Group Settings, Shared Drives, App Passwords, Aliases, Group Members, and Additional Services) into a single, prioritized threat analysis tailored to the target Workspace environment.
How-To
After running AdminPulse data collection reports, users can click Extensions > DoiT AdminPulse > Run Threat Analysis to generate a comprehensive security report that:
Files Changed
• ThreatAnalysis.gs (Added) - Main analysis engine
• CreateUI.gs (Modified) - Added menu item "Run Threat Analysis"
How This Helps
AdminPulse collects great security data, but users have to manually:
• Review 8+ separate sheets
• Identify which issues are critical
• Figure out what to fix first
• Understand remediation steps
This automates all of that into one prioritized report.
Data Sources Analyzed
• Users (2FA, inactive accounts, admin privileges)
• OAuth Tokens (third-party app access and scopes)
• Group Settings (external access, posting permissions)
• Shared Drives (download restrictions, sharing settings)
• App Passwords (2FA bypass mechanisms)
• Aliases (excessive email aliases)
• Group Members (external members, ownership sprawl)
• Additional Services (60+ Google Workspace services)
Testing Notes
I have tested:
• Code syntax and logic validation
• Risk level assignment accuracy
• Threat categorization logic
• Error handling for edge cases
• Code follows AdminPulse patterns
I'm happy to quickly address any integration issues you find during testing.
Thank you for reviewing! I'm excited to potentially contribute to AdminPulse and help Workspace admins prioritize their security improvements.