Documentation
¶
Overview ¶
Package powershellvalidation checks PowerShell commands before execution.
Package powershellvalidation classifies PowerShell commands for tool permission decisions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandFromInput ¶
CommandFromInput extracts the command field from a PowerShell tool payload.
Types ¶
type Intent ¶
type Intent string
Intent describes the host impact of a PowerShell command.
const ( // IntentReadOnly describes inspection-only commands. IntentReadOnly Intent = "read-only" // IntentWrite describes commands that write workspace state. IntentWrite Intent = "write" // IntentDestructive describes commands that can delete or overwrite data. IntentDestructive Intent = "destructive" // IntentNetwork describes commands that access the network. IntentNetwork Intent = "network" // IntentProcessManagement describes process-control commands. IntentProcessManagement Intent = "process-management" // IntentSystemAdmin describes system-level administration commands. IntentSystemAdmin Intent = "system-admin" // IntentUnknown describes unrecognized commands. IntentUnknown Intent = "unknown" )
type Result ¶
type Result struct {
Severity Severity `json:"severity"`
Intent Intent `json:"intent"`
Reason string `json:"reason,omitempty"`
}
Result reports a PowerShell validation decision.
Click to show internal directories.
Click to hide internal directories.