MySecutec CLI Documentation
Command-line interface for the MySecutec platform. Provides access to security modules including Attack Surface Management, Leaked Credential Management, Dark Net Monitoring, Microsoft 365 Security, Third Party Risk Management, Secure DNS, Advanced Threat Hunting, and Extended Detection & Response.
Table of Contents
Getting Started - Authentication, configuration, environments
AI Agents - Drive the CLI from an AI coding agent
Agent Mode - One-command agent setup (mysecutec agent)
Workflows - Common end-to-end task recipes
Global Flags - Flags available on all commands
Interactive Dashboard - Full-screen terminal UI (mysecutec tui)
Updating the CLI - Self-update and version checks
Assets - Asset management (list, get, update, delete, restore)
Threats - Threat management (list, get, update, logs, aggregation)
Export - Async CSV exports of threats and assets
ASM - Attack Surface Management
LCM - Leaked Credential Management
M365 - Microsoft 365 Security
MSC - Microsoft Security Center
DNM - Dark Net Monitoring
TPRM - Third Party Risk Management
SDNS - Secure DNS
ATH - Advanced Threat Hunting
XDR - Extended Detection & Response
IVS - Identified Vulnerability Systems
PDK - Phishing Detection Kit
Organizations - Organization management and impersonation
IAM - Identity & Access Management
Reports - Report history, settings, generation
Notifications - Inbox, settings, devices
Models - Data model reference
Quick Reference
Command
Description
mysecutec login
Authenticate via OAuth2 PKCE
mysecutec logout
Clear authentication tokens
mysecutec status
Show auth and token status
mysecutec version
Display CLI version
mysecutec config
Manage CLI configuration
mysecutec use <env>
Switch environment (testing/staging/production)
mysecutec impersonate
Impersonate an organization
mysecutec agent
Start an AI agent session wired to the CLI
mysecutec update
Self-update to the latest build
mysecutec tui
Launch the interactive dashboard
mysecutec assets
Manage assets
mysecutec threats
Manage threats
mysecutec export
Async CSV exports of threats and assets
mysecutec asm
Attack Surface Management
mysecutec lcm
Leaked Credential Management
mysecutec m365
Microsoft 365 Security
mysecutec msc
Microsoft Security Center
mysecutec dnm
Dark Net Monitoring
mysecutec tprm
Third Party Risk Management
mysecutec sdns
Secure DNS
mysecutec ath
Advanced Threat Hunting
mysecutec xdr
Extended Detection & Response
mysecutec ivs
Identified Vulnerability Systems
mysecutec pdk
Phishing Detection Kit
mysecutec orgs
Organization management
mysecutec iam
Identity & Access Management
mysecutec report
Reports (list, generate, download, settings)
mysecutec notification
Notifications (inbox, settings, devices)
mysecutec completion
Shell completion generation
API Base URLs
Environment
API URL
Auth URL
production
https://api.my.secutec.com
https://auth.my.secutec.com
staging
https://staging.api.my.secutec.com
https://staging.auth.my.secutec.com
testing
https://testing.api.my.secutec.com
https://testing.auth.my.secutec.com