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
Global Flags - Flags available on all commands
Assets - Asset management (list, get, update, delete, restore)
Threats - Threat management (list, get, update, logs, aggregation)
ASM - Attack Surface Management
LCM - Leaked Credential Management
M365 - Microsoft 365 Security
DNM - Dark Net Monitoring
TPRM - Third Party Risk Management
SDNS - Secure DNS
ATH - Advanced Threat Hunting
XDR - Extended Detection & Response
Organizations - Organization management and impersonation
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 assets
Manage assets
mysecutec threats
Manage threats
mysecutec asm
Attack Surface Management
mysecutec lcm
Leaked Credential Management
mysecutec m365
Microsoft 365 Security
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 orgs
Organization management
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