Skip to main content
Dotset CLI API Documentation / tollgate / ShellAnalyzer

Class: ShellAnalyzer

Defined in: src/tollgate/analyzers/shell.ts:19 Shell Command Analyzer Detects dangerous shell commands and patterns:
  • Destructive commands (rm -rf, mkfs, dd)
  • Privilege escalation (sudo, su)
  • Remote code execution (curl | bash)
  • System modification (chmod 777, chown)

Implements

Constructors

Constructor

new ShellAnalyzer(): ShellAnalyzer;

Returns

ShellAnalyzer

Properties

name

readonly name: "shell" = 'shell';
Defined in: src/tollgate/analyzers/shell.ts:20 Unique identifier for this analyzer

Implementation of

Methods

analyze()

analyze(command, _context?): AnalysisResult;
Defined in: src/tollgate/analyzers/shell.ts:230 Analyze content and return risk assessment

Parameters

command
string
_context?

Returns

Implementation of