惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
Recorded Future
Recorded Future
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
N
News | PayPal Newsroom
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Help Net Security
Help Net Security
博客园 - Franky
SecWiki News
SecWiki News
Recent Announcements
Recent Announcements
T
Troy Hunt's Blog
The Register - Security
The Register - Security
The Last Watchdog
The Last Watchdog
Webroot Blog
Webroot Blog
S
Security Affairs
博客园 - 司徒正美
S
Schneier on Security
I
InfoQ
博客园_首页
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threat Research - Cisco Blogs
Forbes - Security
Forbes - Security
腾讯CDC
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic
Cloudbric
Cloudbric
T
The Exploit Database - CXSecurity.com
P
Proofpoint News Feed
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Recent Commits to openclaw:main
Recent Commits to openclaw:main
B
Blog
V
Vulnerabilities – Threatpost
C
Check Point Blog
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cisco Blogs
Schneier on Security
Schneier on Security
O
OpenAI News
K
Kaspersky official blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: speed up security audit tests · openclaw/openclaw@1bc9bad
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -39,48 +39,6 @@ type ExecDockerRawFn = (

3939

) => Promise<import("../agents/sandbox/docker.js").ExecDockerRawResult>;

40404141

type CodeSafetySummaryCache = Map<string, Promise<unknown>>;

42-

type WorkspaceSkillScanLimits = {

43-

maxFiles?: number;

44-

maxDirVisits?: number;

45-

};

46-

const MAX_WORKSPACE_SKILL_SCAN_FILES_PER_WORKSPACE = 2_000;

47-

const MAX_WORKSPACE_SKILL_ESCAPE_DETAIL_ROWS = 12;

48-49-

/**

50-

* Resolves the realpath of `p` with a 2 s timeout.

51-

*

52-

* Returns the realpath string on success, or `null` if realpath fails or the

53-

* timeout fires first. Note: fs.realpath cannot be cancelled once submitted to

54-

* libuv — the underlying OS call continues running in the background after the

55-

* timeout resolves. Callers make sequential (not concurrent) calls so at most

56-

* one libuv thread is occupied at a time; the OS will eventually time out the

57-

* stuck NFS/SMB call independently.

58-

*

59-

* Timer cleanup: when realpath resolves before the deadline the timer is

60-

* cleared immediately so it does not linger across the rest of the audit run.

61-

* The timer is also unref'd so it cannot prevent process exit even if it fires

62-

* late (e.g. the process finishes while a hang is still in-flight).

63-

*/

64-

function realpathWithTimeout(p: string, timeoutMs = 2000): Promise<string | null> {

65-

let timerHandle: ReturnType<typeof setTimeout> | undefined;

66-67-

const realpathPromise = fs

68-

.realpath(p)

69-

.catch(() => null)

70-

.then((result) => {

71-

clearTimeout(timerHandle);

72-

return result;

73-

});

74-75-

const timeoutPromise = new Promise<null>((resolve) => {

76-

timerHandle = setTimeout(() => resolve(null), timeoutMs);

77-

// Prevent the timer from keeping the process alive while waiting on a

78-

// potentially hanging NFS/SMB path during a large audit run.

79-

timerHandle.unref?.();

80-

});

81-82-

return Promise.race([realpathPromise, timeoutPromise]);

83-

}

8442

let skillsModulePromise: Promise<typeof import("../agents/skills.js")> | undefined;

8543

let configModulePromise: Promise<typeof import("../config/config.js")> | undefined;

8644

let agentScopeModulePromise: Promise<typeof import("../agents/agent-scope.js")> | undefined;

@@ -302,66 +260,6 @@ async function getCodeSafetySummary(params: {

302260

});

303261

}

304262305-

async function listWorkspaceSkillMarkdownFiles(

306-

workspaceDir: string,

307-

limits: WorkspaceSkillScanLimits = {},

308-

): Promise<{ skillFilePaths: string[]; truncated: boolean }> {

309-

const skillsRoot = path.join(workspaceDir, "skills");

310-

const rootStat = await safeStat(skillsRoot);

311-

if (!rootStat.ok || !rootStat.isDir) {

312-

return { skillFilePaths: [], truncated: false };

313-

}

314-315-

const maxFiles = limits.maxFiles ?? MAX_WORKSPACE_SKILL_SCAN_FILES_PER_WORKSPACE;

316-

const maxTotalDirVisits = limits.maxDirVisits ?? maxFiles * 20;

317-

const skillFiles: string[] = [];

318-

const queue: string[] = [skillsRoot];

319-

const visitedDirs = new Set<string>();

320-

let totalDirVisits = 0;

321-322-

while (queue.length > 0 && skillFiles.length < maxFiles && totalDirVisits++ < maxTotalDirVisits) {

323-

const dir = queue.shift()!;

324-

// Use the module-level realpathWithTimeout so a hanging network FS doesn't

325-

// block the BFS indefinitely (same 2 s guard as the outer escape-detection loop).

326-

const dirRealPath = (await realpathWithTimeout(dir)) ?? path.resolve(dir);

327-

if (visitedDirs.has(dirRealPath)) {

328-

continue;

329-

}

330-

visitedDirs.add(dirRealPath);

331-332-

const entries = await fs.readdir(dir, { withFileTypes: true }).catch(() => []);

333-

for (const entry of entries) {

334-

if (entry.name.startsWith(".") || entry.name === "node_modules") {

335-

continue;

336-

}

337-

const fullPath = path.join(dir, entry.name);

338-

if (entry.isDirectory()) {

339-

queue.push(fullPath);

340-

continue;

341-

}

342-

if (entry.isSymbolicLink()) {

343-

const stat = await fs.stat(fullPath).catch(() => null);

344-

if (!stat) {

345-

continue;

346-

}

347-

if (stat.isDirectory()) {

348-

queue.push(fullPath);

349-

continue;

350-

}

351-

if (stat.isFile() && entry.name === "SKILL.md") {

352-

skillFiles.push(fullPath);

353-

}

354-

continue;

355-

}

356-

if (entry.isFile() && entry.name === "SKILL.md") {

357-

skillFiles.push(fullPath);

358-

}

359-

}

360-

}

361-362-

return { skillFilePaths: skillFiles, truncated: queue.length > 0 };

363-

}

364-365263

// --------------------------------------------------------------------------

366264

// Exported collectors

367265

// --------------------------------------------------------------------------

@@ -552,110 +450,6 @@ export async function collectSandboxBrowserHashLabelFindings(params?: {

552450

return findings;

553451

}

554452555-

export async function collectWorkspaceSkillSymlinkEscapeFindings(params: {

556-

cfg: OpenClawConfig;

557-

skillScanLimits?: WorkspaceSkillScanLimits;

558-

}): Promise<SecurityAuditFinding[]> {

559-

const findings: SecurityAuditFinding[] = [];

560-

const { listAgentWorkspaceDirs } = await loadAgentWorkspaceDirsModule();

561-

const workspaceDirs = listAgentWorkspaceDirs(params.cfg);

562-

if (workspaceDirs.length === 0) {

563-

return findings;

564-

}

565-566-

const escapedSkillFiles: Array<{

567-

workspaceDir: string;

568-

skillFilePath: string;

569-

skillRealPath: string;

570-

}> = [];

571-

const seenSkillPaths = new Set<string>();

572-573-

for (const workspaceDir of workspaceDirs) {

574-

const workspacePath = path.resolve(workspaceDir);

575-

const workspaceRealPath = (await realpathWithTimeout(workspacePath)) ?? workspacePath;

576-

const { skillFilePaths, truncated } = await listWorkspaceSkillMarkdownFiles(

577-

workspacePath,

578-

params.skillScanLimits,

579-

);

580-581-

if (truncated) {

582-

// The BFS visit cap was hit before the full skills/ tree was scanned.

583-

// Escaped SKILL.md symlinks in the unvisited portion will not be detected.

584-

// Surface this as a warning so the user knows coverage was incomplete.

585-

findings.push({

586-

checkId: "skills.workspace.scan_truncated",

587-

severity: "warn",

588-

title: "Workspace skill scan reached the directory visit limit",

589-

detail:

590-

`The skills/ directory scan in ${workspacePath} stopped early after reaching the ` +

591-

`BFS visit cap. Skill files in the unscanned portion of the tree were not checked ` +

592-

"for symlink escapes.",

593-

remediation:

594-

"Flatten or simplify the skills/ directory hierarchy to stay within the scan budget, " +

595-

"or move deeply-nested skill collections to a managed skill location.",

596-

});

597-

}

598-599-

for (const skillFilePath of skillFilePaths) {

600-

const canonicalSkillPath = path.resolve(skillFilePath);

601-

if (seenSkillPaths.has(canonicalSkillPath)) {

602-

continue;

603-

}

604-

seenSkillPaths.add(canonicalSkillPath);

605-606-

const skillRealPath = await realpathWithTimeout(canonicalSkillPath);

607-

if (!skillRealPath) {

608-

// realpath timed out or failed — cannot verify the symlink target.

609-

// Treat as a potential escape rather than silently bypassing the check.

610-

// An attacker on a slow/network FS could otherwise hang realpath to

611-

// prevent escape detection.

612-

escapedSkillFiles.push({

613-

workspaceDir: workspacePath,

614-

skillFilePath: canonicalSkillPath,

615-

skillRealPath: "(realpath timed out \u2014 symlink target unverifiable)",

616-

});

617-

continue;

618-

}

619-

if (isPathInside(workspaceRealPath, skillRealPath)) {

620-

continue;

621-

}

622-

escapedSkillFiles.push({

623-

workspaceDir: workspacePath,

624-

skillFilePath: canonicalSkillPath,

625-

skillRealPath,

626-

});

627-

}

628-

}

629-630-

if (escapedSkillFiles.length === 0) {

631-

return findings;

632-

}

633-634-

findings.push({

635-

checkId: "skills.workspace.symlink_escape",

636-

severity: "warn",

637-

title: "Workspace skill files resolve outside the workspace root",

638-

detail:

639-

"Detected workspace `skills/**/SKILL.md` paths whose realpath escapes their workspace root:\n" +

640-

escapedSkillFiles

641-

.slice(0, MAX_WORKSPACE_SKILL_ESCAPE_DETAIL_ROWS)

642-

.map(

643-

(entry) =>

644-

`- workspace=${entry.workspaceDir}\n` +

645-

` skill=${entry.skillFilePath}\n` +

646-

` realpath=${entry.skillRealPath}`,

647-

)

648-

.join("\n") +

649-

(escapedSkillFiles.length > MAX_WORKSPACE_SKILL_ESCAPE_DETAIL_ROWS

650-

? `\n- +${escapedSkillFiles.length - MAX_WORKSPACE_SKILL_ESCAPE_DETAIL_ROWS} more`

651-

: ""),

652-

remediation:

653-

"Keep workspace skills inside the workspace root (replace symlinked escapes with real in-workspace files), or move trusted shared skills to managed/bundled skill locations.",

654-

});

655-656-

return findings;

657-

}

658-659453

export async function collectIncludeFilePermFindings(params: {

660454

configSnapshot: ConfigFileSnapshot;

661455

env?: NodeJS.ProcessEnv;