-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsocket.yaml
More file actions
89 lines (84 loc) · 3.43 KB
/
Copy pathsocket.yaml
File metadata and controls
89 lines (84 loc) · 3.43 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
# Socket.dev configuration -- https://docs.socket.dev/docs/socket-yml
#
# morie is a scientific-computing package: its dependency tree (numpy,
# scipy, pandas, scikit-learn, matplotlib, statsmodels, httpx) inherently
# contains compiled native code, opens network sockets, and -- in the case
# of numpy's f2py build tooling -- uses eval() on local build config. These
# are EXPECTED capabilities of the package category, not vulnerabilities in
# morie's own code (which has been hardened: see morie._exec_guard and the
# 1.0.1 NEWS entry). This file acknowledges the purely-informational
# capability alerts on that dependency tree while keeping every alert that
# signals ACTUAL malicious behaviour switched on and PR-gating.
version: 2
# Files Socket should NOT scan as first-party source. These are vendored,
# generated, build-output, or opaque-archive artifacts -- not code we ship
# or can fix -- so findings on them are pure noise that drowns out real
# alerts on src/morie. Gitignore-style globs (docs.socket.dev/docs/socket-yml).
#
# NOTE on the numpy `vendored-meson/test cases/` + plotly `labextension`
# alerts: those live inside the dependency SDISTS, which Socket analyses at
# the REGISTRY level -- projectIgnorePaths (repo-tree only) does not reach
# them. They are addressed instead by installing WHEELS ONLY (see ci.yml
# `--only-binary`), so the sdists are never resolved; wheels do not carry
# those trees. Registry-level capability alerts stay governed by issueRules
# below + dashboard triage.
projectIgnorePaths:
- "**/site-packages/**"
- "**/dist-packages/**"
- "**/node_modules/**"
- "**/.venv/**"
- "**/venv/**"
- "**/env/**"
- "**/__pycache__/**"
- "**/*.pyc"
- "**/build/**"
- "**/dist/**"
- "**/*.egg-info/**"
- "**/*.whl"
- "**/*.tar.xz"
- "**/*.tar.gz"
- "**/*.zip"
- "**/*.7z"
- "**/vendored-meson/**"
- "**/test cases/**"
- "**/testcases/**"
- "**/labextension/static/**"
- "**/*.min.js"
- "**/.git/**"
issueRules:
# --- KEPT ON: genuine malware / integrity signals (must always gate) ---
malware: true
gptMalware: true
obfuscatedFile: true
installScripts: true
gptSecurity: true
telemetry: true
suspiciousStarActivity: true
troll: true
typosquat: true
didYouMean: true
criticalCVE: true
cve: true
gptAnomaly: true
# --- KEPT ON deliberately: do NOT globally blind these ---
# socket.yml rules are GLOBAL (no per-package overrides -- verified against
# docs.socket.dev/docs/socket-yml). Turning usesEval/shellAccess off here
# would silence them for EVERY dependency, so a future malicious eval/shell
# in a *different* package would slip through. morie's own code no longer
# uses eval/shell dangerously (1.0.1: shell=False + allowlist, AST-guarded
# eval, MORIE_NO_EXEC kill-switch), so the only current hits are the known
# transitive ones (numpy f2py build-config eval, anyio sockets). Those are
# triaged per-package in the Socket DASHBOARD, which keeps full visibility
# over the rest of the tree.
usesEval: true
shellAccess: true
# --- ACKNOWLEDGED OFF: pure-informational capabilities, not vuln classes ---
# Every scientific/HTTP package ships compiled extensions and opens sockets;
# flagging them adds noise without signal. Safe to disable globally because
# they describe a capability, not a behaviour that could be malicious.
nativeCode: false
networkAccess: false
githubApp:
enabled: true
pullRequestAlertsEnabled: true
projectReportsEnabled: true