Zum Inhalt springen

Legit Security Commands

Comprehensive Legit Security ASPM platform commands and workflows for application security posture management.

Legitify CLI Tool

CommandDescription
legitify --helpShow help information
legitify --versionShow version information
legitify --org <organization>Scan specific organization
legitify --repo <repository>Scan specific repository
legitify --token <token>Use GitHub token for authentication
legitify --output-format jsonOutput results in JSON format
legitify --output-file results.jsonSave results to file
legitify --scorecardGenerate security scorecard

GitHub Security Scanning

CommandDescription
legitify github --org <org>Scan GitHub organization
legitify github --repo <owner/repo>Scan specific repository
legitify github --all-reposScan all accessible repositories
legitify github --branch-protectionCheck branch protection rules
legitify github --secrets-scanningVerify secrets scanning configuration
legitify github --dependency-reviewCheck dependency review settings

Configuration Management

CommandDescription
legitify config initInitialize configuration file
legitify config validateValidate configuration
legitify config showDisplay current configuration
legitify config set <key> <value>Set configuration value
legitify --config <file>Use custom configuration file

Policy Management

CommandDescription
legitify policies listList available policies
legitify policies show <policy>Show policy details
legitify policies validateValidate custom policies
legitify --policy <policy>Run specific policy
legitify --skip-policy <policy>Skip specific policy
legitify --severity <level>Filter by severity level

Reporting and Output

CommandDescription
legitify --output-format tableOutput in table format
legitify --output-format jsonOutput in JSON format
legitify --output-format sarifOutput in SARIF format
legitify --output-format csvOutput in CSV format
legitify --quietSuppress verbose output
legitify --verboseEnable verbose logging

ASPM Platform API

EndpointDescription
GET /api/v1/organizationsList organizations
GET /api/v1/repositoriesList repositories
GET /api/v1/vulnerabilitiesGet vulnerability data
GET /api/v1/complianceGet compliance status
POST /api/v1/scansTrigger security scan
GET /api/v1/reportsGenerate reports

Authentication and Setup

CommandDescription
legitify auth loginLogin to Legit Security platform
legitify auth logoutLogout from platform
legitify auth statusCheck authentication status
legitify auth tokenManage API tokens
export LEGIT_TOKEN=<token>Set environment token

Vulnerability Management

CommandDescription
legitify vulns listList vulnerabilities
legitify vulns show <vuln-id>Show vulnerability details
legitify vulns filter --severity highFilter by severity
legitify vulns filter --status openFilter by status
legitify vulns exportExport vulnerability data
legitify vulns remediate <vuln-id>Mark vulnerability as remediated

Compliance Scanning

CommandDescription
legitify compliance --framework pciScan for PCI compliance
legitify compliance --framework soxScan for SOX compliance
legitify compliance --framework iso27001Scan for ISO 27001 compliance
legitify compliance --framework nistScan for NIST compliance
legitify compliance reportGenerate compliance report

CI/CD Integration

CommandDescription
legitify ci --pipeline github-actionsScan GitHub Actions
legitify ci --pipeline jenkinsScan Jenkins pipeline
legitify ci --pipeline gitlab-ciScan GitLab CI
legitify ci --fail-on-highFail build on high severity
legitify ci --baseline <file>Use baseline for comparison

Secret Detection

CommandDescription
legitify secrets scanScan for exposed secrets
legitify secrets --path <directory>Scan specific directory
legitify secrets --exclude <pattern>Exclude files/patterns
legitify secrets --custom-rules <file>Use custom detection rules
legitify secrets remediateRemediate found secrets

Dependency Analysis

CommandDescription
legitify deps scanScan dependencies
legitify deps --package-manager npmScan NPM dependencies
legitify deps --package-manager pipScan Python dependencies
legitify deps --package-manager mavenScan Maven dependencies
legitify deps vulnerabilitiesShow dependency vulnerabilities

Code Quality Analysis

CommandDescription
legitify code scanPerform code analysis
legitify code --language javascriptScan JavaScript code
legitify code --language pythonScan Python code
legitify code --language javaScan Java code
legitify code qualityGenerate code quality report

Risk Assessment

CommandDescription
legitify risk assessPerform risk assessment
legitify risk --asset <asset>Assess specific asset
legitify risk scoreCalculate risk score
legitify risk trendsShow risk trends
legitify risk matrixGenerate risk matrix

Monitoring and Alerts

CommandDescription
legitify monitor startStart continuous monitoring
legitify monitor stopStop monitoring
legitify monitor statusCheck monitoring status
legitify alerts listList active alerts
legitify alerts configureConfigure alert rules

Integration Commands

CommandDescription
legitify integrate jiraSetup JIRA integration
legitify integrate slackSetup Slack integration
legitify integrate teamsSetup Teams integration
legitify integrate webhook <url>Configure webhook
legitify integrate testTest integrations

Advanced Features

CommandDescription
legitify ai analyzeAI-powered analysis
legitify ai recommendationsGet AI recommendations
legitify ai prioritizeAI-based prioritization
legitify ai remediationAI-suggested remediation
legitify ai insightsGenerate AI insights

Batch Operations

CommandDescription
legitify batch scan --repos <file>Batch scan repositories
legitify batch remediate --vulns <file>Batch remediate vulnerabilities
legitify batch export --format jsonBatch export data
legitify batch import --data <file>Import batch data

Performance and Optimization

CommandDescription
legitify --parallel <count>Set parallel scan count
legitify --cache-dir <path>Set cache directory
legitify --timeout <seconds>Set scan timeout
legitify --memory-limit <mb>Set memory limit
legitify optimizeOptimize scan performance

Debugging and Troubleshooting

CommandDescription
legitify debug --log-level debugEnable debug logging
legitify debug --traceEnable trace logging
legitify debug validateValidate configuration
legitify debug connectivityTest connectivity
legitify debug permissionsCheck permissions

Environment Variables

VariableDescription
LEGIT_TOKENAPI authentication token
LEGIT_ORGDefault organization
LEGIT_CONFIGConfiguration file path
LEGIT_OUTPUT_DIRDefault output directory
LEGIT_LOG_LEVELLogging level

Configuration Files

FileDescription
.legitify.ymlMain configuration file
.legitify-policies.ymlCustom policies configuration
.legitify-ignoreFiles to ignore during scans
legitify-baseline.jsonBaseline for comparison

Docker Integration

CommandDescription
docker run legitify/cli scanRun in Docker container
docker run -v $(pwd):/workspace legitify/cliMount workspace
docker run -e LEGIT_TOKEN=$TOKEN legitify/cliPass environment variables

Kubernetes Integration

CommandDescription
kubectl apply -f legitify-scanner.yamlDeploy scanner
kubectl get pods -l app=legitifyCheck scanner pods
kubectl logs -l app=legitifyView scanner logs
kubectl delete -f legitify-scanner.yamlRemove scanner

Webhook Configuration

EventDescription
vulnerability.foundNew vulnerability detected
compliance.failedCompliance check failed
scan.completedScan completed
risk.increasedRisk level increased
remediation.requiredRemediation required