-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.yaml
More file actions
102 lines (97 loc) · 2.47 KB
/
default.yaml
File metadata and controls
102 lines (97 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
hushspec: "0.1.0"
name: default
description: Default security rules for AI agent execution
rules:
forbidden_paths:
patterns:
# SSH keys
- "**/.ssh/**"
- "**/id_rsa*"
- "**/id_ed25519*"
- "**/id_ecdsa*"
# Cloud/infra credentials
- "**/.aws/**"
- "**/.gnupg/**"
- "**/.kube/**"
- "**/.docker/**"
- "**/.npmrc"
# Environment files
- "**/.env"
- "**/.env.*"
# Git credentials
- "**/.git-credentials"
- "**/.gitconfig"
# Password stores
- "**/.password-store/**"
- "**/pass/**"
- "**/.1password/**"
# Unix system paths
- "/etc/shadow"
- "/etc/passwd"
- "/etc/sudoers"
# Windows credentials and registry hives
- "**/AppData/Roaming/Microsoft/Credentials/**"
- "**/AppData/Local/Microsoft/Credentials/**"
- "**/AppData/Roaming/Microsoft/Vault/**"
- "**/NTUSER.DAT"
- "**/Windows/System32/config/SAM"
- "**/Windows/System32/config/SECURITY"
- "**/Windows/System32/config/SYSTEM"
exceptions: []
egress:
allow:
- "*.openai.com"
- "*.anthropic.com"
- "api.github.com"
- "github.com"
- "*.githubusercontent.com"
- "*.npmjs.org"
- "registry.npmjs.org"
- "pypi.org"
- "files.pythonhosted.org"
- "crates.io"
- "static.crates.io"
block: []
default: block
secret_patterns:
patterns:
- name: aws_access_key
pattern: "AKIA[0-9A-Z]{16}"
severity: critical
- name: github_token
pattern: "gh[ps]_[A-Za-z0-9]{36}"
severity: critical
- name: openai_key
pattern: "sk-[A-Za-z0-9]{48}"
severity: critical
- name: private_key
pattern: "-----BEGIN\\s+(RSA\\s+)?PRIVATE\\s+KEY-----"
severity: critical
skip_paths:
- "**/test/**"
- "**/tests/**"
- "**/*_test.*"
- "**/*.test.*"
patch_integrity:
max_additions: 1000
max_deletions: 500
require_balance: false
max_imbalance_ratio: 10.0
forbidden_patterns:
- "(?i)disable[\\s_\\-]?(security|auth|ssl|tls)"
- "(?i)skip[\\s_\\-]?(verify|validation|check)"
- "(?i)rm\\s+-rf\\s+/"
- "(?i)chmod\\s+777"
tool_access:
allow: []
block:
- shell_exec
- run_command
- raw_file_write
- raw_file_delete
require_confirmation:
- file_write
- file_delete
- git_push
default: allow
max_args_size: 1048576