checks

package
v0.0.0-...-96c0ad5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttackVector

type AttackVector struct {
	Name           string   `json:"name"`
	Category       string   `json:"category"`
	Severity       Severity `json:"severity"`
	Description    string   `json:"description"`
	Exploitability string   `json:"exploitability"`
	Impact         string   `json:"impact"`
	Mitigation     string   `json:"mitigation"`
	CVEIDs         []string `json:"cve_ids,omitempty"`
}

AttackVector represents potential attack methods

type CheckStatus

type CheckStatus string

CheckStatus represents the result of a cyberpunk security check

const (
	StatusPass CheckStatus = "PASS"
	StatusFail CheckStatus = "FAIL"
	StatusWarn CheckStatus = "WARN"
	StatusInfo CheckStatus = "INFO"
	StatusSkip CheckStatus = "SKIP"
)

type Checker

type Checker interface {
	RunChecks(results *Results) error
}

Checker interface for all security check modules

type CyberpunkScan

type CyberpunkScan struct {
	Type        string    `json:"type"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	StartTime   time.Time `json:"start_time"`
	EndTime     time.Time `json:"end_time"`
	Duration    string    `json:"duration"`
	Findings    int       `json:"findings"`
	Status      string    `json:"status"`
	ThreatLevel string    `json:"threat_level"`
}

CyberpunkScan represents a cyberpunk-themed security scan

type Finding

type Finding struct {
	ID           string      `json:"id"`
	Title        string      `json:"title"`
	Description  string      `json:"description"`
	Severity     Severity    `json:"severity"`
	Status       CheckStatus `json:"status"`
	Expected     string      `json:"expected"`
	Actual       string      `json:"actual"`
	Remediation  string      `json:"remediation"`
	References   []string    `json:"references,omitempty"`
	CVEIDs       []string    `json:"cve_ids,omitempty"`
	Category     string      `json:"category"`
	Timestamp    time.Time   `json:"timestamp"`
	Exploitable  bool        `json:"exploitable"`
	ThreatLevel  string      `json:"threat_level,omitempty"`
	AttackVector string      `json:"attack_vector,omitempty"`
	// Cyberpunk enhancements
	NeuralThreat    bool    `json:"neural_threat"`
	ICEBypass       bool    `json:"ice_bypass"`
	GhostAccess     bool    `json:"ghost_access"`
	MatrixAnomaly   bool    `json:"matrix_anomaly"`
	ThreatScore     float64 `json:"threat_score"`
	DetectionMethod string  `json:"detection_method,omitempty"`
}

Finding represents a cyberpunk-enhanced security finding

func (*Finding) String

func (f *Finding) String() string

String returns a cyberpunk-styled string representation of the finding

type GhostChecker

type GhostChecker struct {
	// contains filtered or unexported fields
}

GhostChecker handles Ghost Protocol (SSH) security analysis

func NewGhostChecker

func NewGhostChecker(verbose, stealth, advanced bool) *GhostChecker

NewGhostChecker creates a new Ghost Protocol analyzer

func (*GhostChecker) RunChecks

func (gc *GhostChecker) RunChecks(results *Results) error

RunChecks performs comprehensive Ghost Protocol security analysis

type GhostProtocol

type GhostProtocol struct {
	Parameter   string `json:"parameter"`
	Value       string `json:"value"`
	Secure      bool   `json:"secure"`
	ThreatLevel string `json:"threat_level"`
	Exploitable bool   `json:"exploitable"`
}

GhostProtocol represents SSH security configuration

type GhostRule

type GhostRule struct {
	Parameter    string
	Expected     string
	Description  string
	Severity     Severity
	References   []string
	ThreatLevel  string
	Exploitable  bool
	AttackVector string
	CVEIDs       []string
}

GhostRule defines a Ghost Protocol security rule

type ICEBarrier

type ICEBarrier struct {
	ServiceName  string `json:"service_name"`
	Running      bool   `json:"running"`
	Enabled      bool   `json:"enabled"`
	ShouldRun    bool   `json:"should_run"`
	ThreatLevel  string `json:"threat_level"`
	Exploitable  bool   `json:"exploitable"`
	AttackVector string `json:"attack_vector"`
}

ICEBarrier represents service security state

type ICEChecker

type ICEChecker struct {
	// contains filtered or unexported fields
}

ICEChecker handles Intrusion Countermeasures Electronics (Services)

func NewICEChecker

func NewICEChecker(verbose, stealth, advanced bool) *ICEChecker

NewICEChecker creates a new ICE system analyzer

func (*ICEChecker) RunChecks

func (ic *ICEChecker) RunChecks(results *Results) error

RunChecks performs comprehensive ICE system analysis

type ICERule

type ICERule struct {
	ServiceName  string
	ShouldRun    bool
	Description  string
	Severity     Severity
	References   []string
	ThreatLevel  string
	Exploitable  bool
	AttackVector string
}

ICERule defines an intrusion countermeasure rule

type MatrixChecker

type MatrixChecker struct {
	// contains filtered or unexported fields
}

MatrixChecker handles Filesystem Matrix security analysis

func NewMatrixChecker

func NewMatrixChecker(verbose, stealth, advanced bool) *MatrixChecker

NewMatrixChecker creates a new Filesystem Matrix analyzer

func (*MatrixChecker) RunChecks

func (mc *MatrixChecker) RunChecks(results *Results) error

RunChecks performs comprehensive Filesystem Matrix security analysis

type MatrixMountInfo

type MatrixMountInfo struct {
	Device     string
	MountPoint string
	FSType     string
	Options    []string
	Flags      uintptr
}

MatrixMountInfo represents enhanced mount information

type MatrixNode

type MatrixNode struct {
	Path        string   `json:"path"`
	Type        string   `json:"type"`
	Permissions string   `json:"permissions"`
	Owner       string   `json:"owner"`
	Options     []string `json:"options,omitempty"`
	Secure      bool     `json:"secure"`
	Anomalies   []string `json:"anomalies,omitempty"`
}

MatrixNode represents filesystem security element

type NeuralChecker

type NeuralChecker struct {
	// contains filtered or unexported fields
}

NeuralChecker handles kernel neural pathway security analysis

func NewNeuralChecker

func NewNeuralChecker(verbose, stealth, advanced bool) *NeuralChecker

NewNeuralChecker creates a new neural pathway analyzer

func (*NeuralChecker) RunChecks

func (nc *NeuralChecker) RunChecks(results *Results) error

RunChecks performs comprehensive neural pathway analysis

type NeuralPathway

type NeuralPathway struct {
	Parameter     string `json:"parameter"`
	CurrentValue  string `json:"current_value"`
	ExpectedValue string `json:"expected_value"`
	Secure        bool   `json:"secure"`
	ThreatLevel   string `json:"threat_level"`
	Exploitable   bool   `json:"exploitable"`
}

NeuralPathway represents kernel parameter security

type NeuralRule

type NeuralRule struct {
	Parameter   string
	Expected    string
	Description string
	Severity    Severity
	References  []string
	Exploitable bool
	CVEIDs      []string
}

NeuralRule defines a kernel neural pathway security rule

type Remediation

type Remediation struct {
	Priority     int      `json:"priority"`
	Title        string   `json:"title"`
	Description  string   `json:"description"`
	Commands     []string `json:"commands"`
	References   []string `json:"references"`
	Difficulty   string   `json:"difficulty"`
	TimeRequired string   `json:"time_required"`
	RiskLevel    string   `json:"risk_level"`
}

Remediation represents cyberpunk-style remediation guidance

type Results

type Results struct {
	SystemInfo SystemInfo `json:"system_info"`
	Findings   []*Finding `json:"findings"`
	Summary    Summary    `json:"summary"`
	StartTime  time.Time  `json:"start_time"`
	EndTime    time.Time  `json:"end_time"`
	Duration   string     `json:"duration"`
	// Cyberpunk enhancements
	NeuralInterface   bool           `json:"neural_interface"`
	GhostModeActive   bool           `json:"ghost_mode_active"`
	StealthModeActive bool           `json:"stealth_mode_active"`
	ThreatAssessment  ThreatLevel    `json:"threat_assessment"`
	SecurityScore     float64        `json:"security_score"`
	AttackVectors     []AttackVector `json:"attack_vectors,omitempty"`
	RemediationPlan   []Remediation  `json:"remediation_plan,omitempty"`
}

Results holds all cyberpunk security assessment results

func (*Results) AddFinding

func (r *Results) AddFinding(finding *Finding)

AddFinding adds a cyberpunk-enhanced finding to the results

func (*Results) GenerateSecurityScore

func (r *Results) GenerateSecurityScore() float64

GenerateSecurityScore calculates overall security score (0-100)

func (*Results) GetCriticalFindings

func (r *Results) GetCriticalFindings() []*Finding

GetCriticalFindings returns all critical severity findings

func (*Results) GetCyberpunkSummary

func (r *Results) GetCyberpunkSummary() string

GetCyberpunkSummary returns a cyberpunk-themed summary string

func (*Results) GetExploitableFindings

func (r *Results) GetExploitableFindings() []*Finding

GetExploitableFindings returns all exploitable findings

func (*Results) GetThreatLevel

func (r *Results) GetThreatLevel() string

GetThreatLevel calculates overall system threat level

func (*Results) HasCriticalVulnerabilities

func (r *Results) HasCriticalVulnerabilities() bool

HasCriticalVulnerabilities returns true if there are critical security vulnerabilities

func (*Results) HasExploitableVulnerabilities

func (r *Results) HasExploitableVulnerabilities() bool

HasExploitableVulnerabilities returns true if there are exploitable vulnerabilities

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner orchestrates all cyberpunk security checks with neural interface

func NewRunner

func NewRunner(cfg *config.Config, verbose, stealth, ghostMode bool) *Runner

NewRunner creates a new cyberpunk security check runner

func (*Runner) RunFullPenetrationSuite

func (r *Runner) RunFullPenetrationSuite() (*Results, error)

RunFullPenetrationSuite executes comprehensive security penetration testing

func (*Runner) RunSelectedScans

func (r *Runner) RunSelectedScans(scanTypes []string, stealthMode bool) (*Results, error)

RunSelectedScans executes specific security scans with cyberpunk styling

type Severity

type Severity string

Severity levels for cyberpunk security findings

const (
	SeverityInfo     Severity = "INFO"
	SeverityLow      Severity = "LOW"
	SeverityMedium   Severity = "MEDIUM"
	SeverityHigh     Severity = "HIGH"
	SeverityCritical Severity = "CRITICAL"
)

type Summary

type Summary struct {
	TotalChecks    int `json:"total_checks"`
	PassedChecks   int `json:"passed_checks"`
	FailedChecks   int `json:"failed_checks"`
	WarningChecks  int `json:"warning_checks"`
	SkippedChecks  int `json:"skipped_checks"`
	CriticalIssues int `json:"critical_issues"`
	HighIssues     int `json:"high_issues"`
	MediumIssues   int `json:"medium_issues"`
	LowIssues      int `json:"low_issues"`
	// Cyberpunk enhancements
	ExploitableVulns   int     `json:"exploitable_vulnerabilities"`
	NeuralThreats      int     `json:"neural_threats"`
	ICEBypasses        int     `json:"ice_bypasses"`
	GhostAccesses      int     `json:"ghost_accesses"`
	MatrixAnomalies    int     `json:"matrix_anomalies"`
	OverallThreatScore float64 `json:"overall_threat_score"`
}

Summary provides cyberpunk-enhanced overview of check results

type SystemInfo

type SystemInfo struct {
	Hostname     string `json:"hostname"`
	OS           string `json:"os"`
	Kernel       string `json:"kernel"`
	Architecture string `json:"architecture"`
	Uptime       string `json:"uptime"`
	LoadAverage  string `json:"load_average"`
	CPUCores     int    `json:"cpu_cores"`
	MemoryInfo   string `json:"memory_info"`
	// Cyberpunk enhancements
	NeuralCores       int      `json:"neural_cores"`
	ICELevel          int      `json:"ice_level"`
	SecurityRating    string   `json:"security_rating"`
	ThreatIndicators  []string `json:"threat_indicators,omitempty"`
	SystemFingerprint string   `json:"system_fingerprint"`
}

SystemInfo contains enhanced cyberpunk system information

type ThreatLevel

type ThreatLevel struct {
	Level       string    `json:"level"`
	Score       float64   `json:"score"`
	Description string    `json:"description"`
	Indicators  []string  `json:"indicators"`
	Assessment  time.Time `json:"assessment_time"`
}

ThreatLevel represents cyberpunk threat assessment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL