Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteYellow/AgentProvenance
/ DefaultEngine
Function
DefaultEngine
internal/security/policy.go:129–131 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
127
}
128
129
func
DefaultEngine() Engine {
130
return
Engine{SecretPathPatterns: []string{
".env"
,
"id_rsa"
,
"secret"
,
"credentials"
}, Rules: DefaultRules()}
131
}
132
133
type
Rule
struct
{
134
ID string `yaml:
"id"
json:
"id"
`
Callers
15
Ingest
Function · 0.92
seal
Function · 0.92
Materialize
Function · 0.92
authorize
Method · 0.92
TestEvaluateMetadataIPQuarantines
Function · 0.85
TestEvaluatePrivateCIDRDenies
Function · 0.85
TestEvaluateLoopbackDoesNotDenyAsPrivateCIDR
Function · 0.85
TestEvaluateSecretPathKills
Function · 0.85
TestSelfCredentialAccessNotAlerted
Function · 0.85
TestEvaluatePtraceQuarantines
Function · 0.85
TestEvaluatePrivilegeEscalation
Function · 0.85
TestReevaluateRun
Function · 0.85
Calls
1
DefaultRules
Function · 0.85
Tested by
9
TestEvaluateMetadataIPQuarantines
Function · 0.68
TestEvaluatePrivateCIDRDenies
Function · 0.68
TestEvaluateLoopbackDoesNotDenyAsPrivateCIDR
Function · 0.68
TestEvaluateSecretPathKills
Function · 0.68
TestSelfCredentialAccessNotAlerted
Function · 0.68
TestEvaluatePtraceQuarantines
Function · 0.68
TestEvaluatePrivilegeEscalation
Function · 0.68
TestReevaluateRun
Function · 0.68
TestDetectModeDowngradesToAudit
Function · 0.68