Commit Graph

17213 Commits (ca49372a8d3efe62eb0fa2da816aeff5cbfda7da)
 

Author SHA1 Message Date
Peter Steinberger ca49372a8d refactor(agents): dedupe anthropic turn validation fixtures 9 months ago
Peter Steinberger 02b3e85eac refactor(agents): dedupe embedded fallback e2e helpers 9 months ago
Peter Steinberger 2d4a0c79a3 refactor(agents): dedupe nodes photos_latest camera tests 9 months ago
Peter Steinberger 2891c6c93c refactor(agents): dedupe model fallback probe failure tests 9 months ago
Peter Steinberger e41613f6ec refactor(agents): dedupe kilocode fetch-path tests 9 months ago
Peter Steinberger 53c1ae229f refactor(agents): dedupe minimax api-key normalization tests 9 months ago
Peter Steinberger 4e8fcc1d3d refactor(cli): dedupe command secret gateway env fixtures 9 months ago
Peter Steinberger c1a8f8150e refactor(commands): dedupe gateway status token secret fixtures 9 months ago
Peter Steinberger 4113a0f39e refactor(gateway): dedupe readiness healthy snapshot fixtures 9 months ago
Peter Steinberger 3d18c6ecec refactor(googlechat): dedupe outbound media runtime fixture setup 9 months ago
Peter Steinberger 6b778c4048 refactor(zalouser): reuse shared QR temp file writer 9 months ago
Peter Steinberger c5bb6db85b refactor(cron): share isolated-agent turn core test setup 9 months ago
Peter Steinberger 41e0c35b61 refactor(cron): reuse cron job builder in issue-13992 tests 9 months ago
Peter Steinberger d918fe3ecf refactor(mattermost): dedupe interaction callback test flows 9 months ago
Peter Steinberger 90a41aa1f7 refactor(discord): dedupe resolve channels fallback tests 9 months ago
Peter Steinberger 1fc11ea7d8 refactor(daemon): dedupe systemd restart test scaffolding 9 months ago
Peter Steinberger a31d3cad96 refactor(fetch-guard): clarify cross-origin redirect header filtering 9 months ago
Peter Steinberger c6472c189f chore: land #39056 Node version hint sync (thanks @onstash)
Land contributor change from #39056 and append changelog credit for @onstash.

Co-authored-by: Santosh Venkatraman <santosh.venk@gmail.com>
9 months ago
Byungsker 7735a0b85c
fix(security): use icacls /sid for locale-independent Windows ACL audit (#38900)
* fix(security): use icacls /sid for locale-independent Windows ACL audit

On non-English Windows editions (Russian, Chinese, etc.) icacls prints
account names in the system locale.  When Node.js reads the output in a
different code page the strings are garbled (e.g. "NT AUTHORITY\???????"
for "NT AUTHORITY\СИСТЕМА"), causing summarizeWindowsAcl to classify SYSTEM
and Administrators as untrusted and flag the config files as "others
writable" — a false-positive security alert.

Fix:
1. Pass /sid to icacls so it outputs security identifiers (*S-1-5-X-...)
   instead of locale-dependent account names.
2. Extend SID_RE to accept the leading * that icacls prepends to SIDs in
   /sid mode: /^\*?s-\d+-\d+(-\d+)+$/i
3. Strip the * before looking up the bare SID in TRUSTED_SIDS / the
   per-user USERSID set so *S-1-5-18 is correctly classified as SYSTEM
   (trusted) and *S-1-5-32-544 as Administrators (trusted).

Tests:
- Update the inspectWindowsAcl "returns parsed ACL entries" assertion to
  expect the /sid flag in the icacls call.
- Add "classifies *S-1-5-18 (icacls /sid prefix form of SYSTEM) as trusted"
  SID classification test.
- Add "classifies *S-1-5-32-544 (icacls /sid Administrators) as trusted".
- Add inspectWindowsAcl end-to-end test with /sid-format mock output
  (*S-1-5-18, *S-1-5-32-544, user SID) — all three classified as trusted.

Fixes #35834

* fix(security): classify world-equivalent SIDs as 'world' when using icacls /sid

When icacls is invoked with /sid, world-equivalent principals like
Everyone, Authenticated Users, and BUILTIN\Users are emitted as raw
SIDs (*S-1-1-0, *S-1-5-11, *S-1-5-32-545). classifyPrincipal() had
no SID-based mapping for these, so they fell through to the generic
'group' category instead of 'world', silently downgrading security
findings that should trigger world-write/world-readable alerts.

Fix: add a WORLD_SIDS constant and check it before falling back to
'group'. Add three regression tests to lock in the behaviour.

* Security: resolve owner SID fallback for Windows ACL audit

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
9 months ago
Peter Steinberger 4de697f8fa fix(ci): refresh detect-secrets baseline offsets 9 months ago
Peter Steinberger 46715371b0 fix(security): strip custom auth headers on cross-origin redirects 9 months ago
Peter Steinberger 630485ac98 fix(ci): harden diffs viewer request guard and secret scan baseline 9 months ago
Josh Avant 8e20dd22d8
Secrets: harden SecretRef-safe models.json persistence (#38955) 9 months ago
Peter Steinberger b08337b902 docs(changelog): credit allowlist scoping report 9 months ago
Peter Steinberger 6f3990ddca refactor(commands): dedupe onboard search perplexity test setup 9 months ago
Peter Steinberger 8e6acded82 refactor(commands): dedupe message command secret-config tests 9 months ago
Peter Steinberger 0a73328053 refactor(cli): dedupe restart health probe setup tests 9 months ago
Peter Steinberger 8fd043abac refactor(cron): dedupe interim retry fallback assertions 9 months ago
Peter Steinberger d103918891 refactor(commands): dedupe model probe target test fixtures 9 months ago
Peter Steinberger bffec0f5d5 refactor(discord): dedupe message preflight test runners 9 months ago
Peter Steinberger 9849ee8390 refactor(discord): share message handler test scaffolding 9 months ago
Peter Steinberger 3381efc5c1 refactor(discord): dedupe native command ACP routing test setup 9 months ago
Peter Steinberger 949beca0c2 refactor(slack): dedupe app mention in-flight race setup 9 months ago
Peter Steinberger d33efeef10 refactor(slack): reuse shared prepare test scaffolding 9 months ago
Peter Steinberger 08aae60dc9 refactor(plugin-sdk): extract shared channel prelude exports 9 months ago
Peter Steinberger 969b9029c0 refactor(slack): dedupe app mention race test setup 9 months ago
Peter Steinberger 5d37139ee5 refactor(line): dedupe replay webhook test fixtures 9 months ago
Peter Steinberger 4575bbbb69 refactor(telegram): dedupe topic agent routing tests 9 months ago
Peter Steinberger c1eb973e32 refactor(telegram): dedupe native command session-meta fixtures 9 months ago
Peter Steinberger a82df52753 refactor(extensions): share secret input schema builder 9 months ago
Peter Steinberger 134c1e23d3 refactor(commands): dedupe ACP stream test scaffolding 9 months ago
Peter Steinberger e51bad0c3a refactor(discord): dedupe preflight test builders 9 months ago
Peter Steinberger b3fd537740 refactor(line): share command authorization gate logic 9 months ago
Peter Steinberger f7fef07725 refactor(slack): share account surface field types 9 months ago
Peter Steinberger d02ef9efc2 refactor(telegram): share account config helpers 9 months ago
Peter Steinberger 398bf51659 refactor(slack): reuse shared account merge helper 9 months ago
Peter Steinberger d01cb7b65f refactor(cron): share cron schedule resolver 9 months ago
Peter Steinberger 4204c96105 refactor(gateway): share input allowlist normalizer 9 months ago
Vincent Koc 70da80bcb5
Auto-reply: scope allowlist store writes by account (#39015)
* Auto-reply: scope allowlist store writes

* Tests: cover allowlist store account scoping

* Changelog: note allowlist store scoping hardening
9 months ago
Peter Steinberger 74912037dc perf: harden chunking against quadratic scans 9 months ago