Skip to content

Commit 3c43195

Browse files
authored
[codex] Add OpenClaw security roadmap article (#141)
* docs: add OpenClaw security roadmap article * docs: polish security roadmap article * docs: link Proxyline site * docs: add supporting docs links * docs: tighten security roadmap article * docs: make security article less outline-like * docs: trim filesystem status line * docs: trim static analysis status line * fix: stop blog article background flicker * docs: add security article imagery * Revert "docs: add security article imagery" This reverts commit b4b3cc5. * docs: add security article evidence images * docs: add Jesse Merhi X profile link * docs(blog): trim and tighten 'Where OpenClaw Security Is Heading' * docs(blog): solid article card, wider layout, rounded evidence figures * docs(blog): crop decorative outer frame from security evidence images
1 parent dd5c781 commit 3c43195

11 files changed

Lines changed: 257 additions & 17 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Blog: trim and tighten the "Where OpenClaw Security Is Heading" post, drop redundant status preambles, fix dangling phrasing, and add an Auto Review reference for codex users.
6+
- Blog: widen the article card with a solid backdrop for readability, and round evidence images while cropping their baked-in decorative frame.
57
- Installer: after Linux NodeSource installs, prefer the newly installed supported Node binary when an older `/usr/local/bin/node` still shadows it on PATH.
68
- Installer: when redirecting an unwritable Linux npm global prefix, create or prepend the `.bashrc` PATH hint so fresh non-interactive shells can find `openclaw`.
79

114 KB
Loading
171 KB
Loading
561 KB
Loading
156 KB
Loading
197 KB
Loading
181 KB
Loading

src/content.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ import { glob } from 'astro/loaders';
33

44
const authorSchema = z.object({
55
name: z.string(),
6-
handle: z.string(),
6+
handle: z.string().optional(),
7+
url: z.string().optional(),
8+
links: z.array(z.object({
9+
label: z.string(),
10+
url: z.string(),
11+
})).optional(),
12+
avatar: z.string().optional(),
713
});
814

915
const blog = defineCollection({
@@ -15,6 +21,8 @@ const blog = defineCollection({
1521
// Single author (legacy)
1622
author: z.string().optional(),
1723
authorHandle: z.string().optional(),
24+
authorUrl: z.string().optional(),
25+
authorAvatar: z.string().optional(),
1826
// Multiple authors
1927
authors: z.array(authorSchema).optional(),
2028
draft: z.boolean().default(false),
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
---
2+
title: "Where OpenClaw Security Is Heading"
3+
description: "The security roadmap for making OpenClaw a powerful personal assistant runtime users can understand, observe, and trust."
4+
date: 2026-05-15
5+
authors:
6+
- name: "Jesse Merhi"
7+
links:
8+
- label: "LinkedIn"
9+
url: "https://www.linkedin.com/in/jesse-merhi/"
10+
- label: "@jesse_merhi"
11+
url: "https://x.com/jesse_merhi"
12+
avatar: "/blog/authors/jesse-merhi.jpg"
13+
draft: false
14+
tags: ["security", "open-source", "clawhub", "plugins"]
15+
---
16+
17+
Our goal is for OpenClaw to become a trusted way to run a powerful AI personal assistant.
18+
19+
OpenClaw can read files, run commands, install plugins, talk to the network, and act on a real machine for a real user. Power like that is easy to describe as dangerous. The concern is fair. Powerful does not have to mean blind, unbounded, or impossible to audit.
20+
21+
Some of this has landed. Some is rolling out. Some is still in flight. Some is research. I want to be clear about the difference, because posts that blur those lines mislead readers.
22+
23+
## Filesystem boundaries and fs-safe
24+
25+
OpenClaw runs on your machine. That means it can touch your documents, your codebases, and your photos.
26+
27+
The filesystem risk people usually reach for first is path traversal. That risk is real, but it is also only one symptom of a bigger class of bugs: unclear boundaries. Code thinks it is writing inside one root, then a symlink, absolute path, archive extraction, or sloppy join makes it cross another.
28+
29+
[`fs-safe`](https://fs-safe.io/) is one answer to that. It is the set of [safe filesystem patterns](https://docs.openclaw.ai/gateway/security/secure-file-operations) OpenClaw had already been growing, pulled into a shared library so core code, plugins, and adjacent services can use the same root-bounded primitives.
30+
31+
It is not a sandbox. A plugin that is allowed to run arbitrary shell commands can still do arbitrary shell-command things. `fs-safe` protects against boundary-crossing bugs in filesystem code.
32+
33+
Writing inside a plugin workspace should work. Traversal and absolute-path writes outside that workspace should fail. Plugin authors should not have to reimplement those checks.
34+
35+
<figure class="evidence-figure">
36+
<img src="/blog/where-openclaw-security-is-heading/fs-safe-boundary-refusal-evidence.png" alt="Terminal output showing fs-safe allowing an in-workspace write and blocking traversal and absolute-path writes with outside-workspace errors." loading="lazy" />
37+
<figcaption>Writing inside the plugin workspace succeeds. Traversal and absolute-path writes are refused as <code>outside-workspace</code>.</figcaption>
38+
</figure>
39+
40+
The next step is making these primitives the expected pattern for plugins on ClawHub too. Bypassing them is not automatically malicious, but it is security-relevant. Over time, that kind of choice should count against a plugin's trust posture.
41+
42+
The safest filesystem call is still the one we do not make. That is the security motivation behind the in-flight SQLite runtime-state refactor. Sessions, transcripts, scheduler state, and plugin state belong in a typed database with clear ownership and transactions, not loose files. Moving runtime state into SQLite removes whole categories of filesystem access from the runtime path.
43+
44+
## Network egress and Proxyline
45+
46+
Agentic systems make SSRF harder than it is in a normal web service. In a normal service, user-controlled URLs are often the exception. In an agent runtime, user-controlled or model-influenced URLs are normal product behavior. "Fetch this URL because someone, or something, asked for it" is normal work.
47+
48+
We started with the obvious approach: validate the URL before fetching it. That is not enough. Validation resolves DNS, the fetch resolves DNS again, and the answer can change between the two. A host that pointed at a public IP during validation can point at a metadata endpoint by the time the request leaves.
49+
50+
The fix has to move closer to egress.
51+
52+
[Proxyline](https://proxyline.dev/) is our Node-process routing layer for that. It installs process-global routing for Node networking surfaces and sends traffic through the [proxy you configured](https://docs.openclaw.ai/security/network-proxy). The configured proxy is where the connect-time policy should live: block metadata addresses, private ranges, loopback canaries, and whatever else your environment needs blocked.
53+
54+
Proxyline routes. The proxy enforces.
55+
56+
It also gives operators observability. If you already run a managed proxy, you can route OpenClaw through it and watch destinations, rates, and blocked attempts from infrastructure you already trust.
57+
58+
Proxyline is not a perfect cage around every possible byte. Raw sockets, native modules, unusual transports, early-captured agents, and non-OpenClaw child processes can still bypass a Node-level guardrail. But for ordinary OpenClaw network paths, moving the control point from "a wrapper remembered to validate this URL" to "egress flows through a proxy policy" is a much better shape.
59+
60+
The validation path is simple: `example.com` should pass, a loopback canary should fail, and [`openclaw proxy validate`](https://docs.openclaw.ai/cli/proxy) should prove the configured route behaves that way.
61+
62+
<figure class="evidence-figure">
63+
<img src="/blog/where-openclaw-security-is-heading/proxy-validation-egress-evidence.png" alt="Terminal output showing openclaw proxy validate allowing example.com, denying a loopback canary, and passing validation." loading="lazy" />
64+
<figcaption>The local filtering proxy allows <code>example.com</code>, blocks the loopback canary, and <code>openclaw proxy validate</code> passes.</figcaption>
65+
</figure>
66+
67+
## Plugin trust on ClawHub
68+
69+
ClawHub has to be the authority for plugin trust and provenance when a plugin comes from ClawHub. OpenClaw should consume those signals during install and update, rather than rely only on local inspection after the fact.
70+
71+
The ClawHub pipeline is a mix of signals: ClawScan, VirusTotal, static analysis, metadata checks, source provenance, and manual moderation. None of those is magic. Scanners are noisy in different ways, and a pipeline that screams about everything teaches users to ignore it.
72+
73+
That is where [ClawHub](https://docs.openclaw.ai/clawhub) can do something a local install flow cannot. It can attach [trust evidence](https://docs.openclaw.ai/clawhub/security-audits) to a specific package version. It can say this release is clean, suspicious, held, quarantined, revoked, or malicious. It can block downloads for [malicious or quarantined releases](https://docs.openclaw.ai/clawhub/moderation). It can show users what changed and why.
74+
75+
[Plugins can come from](https://docs.openclaw.ai/cli/plugins) GitHub, a private registry, or a file someone sends you. That is not going away, and OpenClaw should not pretend users do not own their own machines.
76+
77+
What we can do is make the safe path better. Publish on ClawHub. Get scanned. Attach evidence. Let users weigh that evidence before install.
78+
79+
We are also exploring higher-trust tiers above the baseline: official packages, trusted publishers, and packages held to stricter review expectations. For plugins that live outside ClawHub, we want scanning to reach them too, but the exact product shape still needs work.
80+
81+
If ClawHub marks a release as malicious and quarantined, the ClawHub install path should refuse it. That is the bar.
82+
83+
<figure class="evidence-figure">
84+
<img src="/blog/where-openclaw-security-is-heading/clawhub-malicious-install-blocked-compact-evidence.png" alt="Terminal output showing OpenClaw refusing to install a ClawHub release flagged as malicious and quarantined." loading="lazy" />
85+
<figcaption>ClawHub marks a release as malicious and quarantined; OpenClaw refuses the install.</figcaption>
86+
</figure>
87+
88+
## Command approvals and prompt fatigue
89+
90+
Prompts arrive faster than anyone can read them. After a few minutes, users flip on YOLO mode so work can continue. At that point the prompts train the user to stop reading.
91+
92+
Fixing this means fewer prompts, and better prompts.
93+
94+
The accuracy part starts with parsing. String matching is not enough. If an allowlist or blocklist only sees the outer command, wrappers become a bypass. A policy that understands `rm` but cannot see inside `bash -c "rm -rf ~/something"` is not a policy users should trust.
95+
96+
The [shell approval path](https://docs.openclaw.ai/tools/exec-approvals) now evaluates inner command chains for common shell `-c` wrappers. If the inner chain contains an executable that is not allowed, the wrapper should not make it safe. The command highlighter also uses Tree-sitter to surface what OpenClaw found inside wrappers.
97+
98+
<figure class="evidence-figure">
99+
<img src="/blog/where-openclaw-security-is-heading/command-ast-approval-highlight-evidence.png" alt="OpenClaw exec approval dialog highlighting executables inside a nested bash and Python command, including rm." loading="lazy" />
100+
<figcaption>The command highlighter identifies executables inside wrapper payloads, including the inner destructive command.</figcaption>
101+
</figure>
102+
103+
PowerShell has its own traps; we fail closed for forms we do not understand, and broader support is on the roadmap.
104+
105+
Parsing is the easier half. The harder half is deciding when to ask.
106+
107+
A static approval policy either prompts on everything that might be risky, or relies on a fixed allow/deny list that cannot tell whether a command fits the current task.
108+
109+
The question users actually care about: did I want this to happen?
110+
111+
That is why we are experimenting with contextual approval. The goal is not "never prompt." The goal is that prompts mean something — and when they do, the user should stop and read.
112+
113+
For OpenAI users we expose [Auto Review](https://developers.openai.com/codex/concepts/sandboxing/auto-review), a codex-specific feature which replaces manual approval at the sandbox boundary with a separate reviewer agent.
114+
115+
## Static analysis
116+
117+
OpenClaw has had a lot of GitHub Security Advisories. The first job was plugging holes. The next job is making sure the same bug class does not come back.
118+
119+
After an advisory is patched, it is tempting to call it done. A GHSA is evidence about a bug class, not just one bug. The question after triage is: can we find all the code that looks like this?
120+
121+
For that, we use OpenGrep with a precise rulepack. Each rule is tied to an advisory, report, or review finding. The baseline goal is regression detection: if the same vulnerable shape returns, CI catches it before review does. The better goal is variant detection: catch nearby versions of the same mistake.
122+
123+
Precision is everything. A noisy rule is worse than no rule, because it teaches the team to ignore the channel.
124+
125+
Today the checked-in precise OpenGrep rulepack has 148 rules. It runs on PR diffs, and the full scan can be run manually. New patched advisories become candidates for new rules.
126+
127+
<figure class="evidence-figure">
128+
<img src="/blog/where-openclaw-security-is-heading/opengrep-ghsa-local-rule-hit-evidence.png" alt="Terminal output showing an OpenGrep rule finding a GHSA-derived unsafe safe-bin profile fallback pattern." loading="lazy" />
129+
<figcaption>An OpenGrep rule catching a previous GHSA-shaped bug locally.</figcaption>
130+
</figure>
131+
132+
CodeQL runs alongside for deeper semantic coverage. It is slower and noisier to maintain; we use both.
133+
134+
## What This Means for OpenClaw Users
135+
136+
OpenClaw is not becoming less powerful. We are making the boundaries easier to see and defend.
137+
138+
We are not going to promise risk-free agents. Anyone promising that is selling something, or has not shipped enough yet.
139+
140+
What we can promise is the direction. OpenClaw can stay powerful while becoming more defensible. That is what we are building.

src/pages/blog/[...slug].astro

Lines changed: 81 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,33 @@ const { post } = Astro.props;
1515
const { Content } = await render(post);
1616
1717
// Normalize authors - support both legacy single author and new multi-author format
18-
type Author = { name: string; handle: string };
18+
type AuthorLink = { label: string; url: string };
19+
type Author = { name: string; handle?: string; url?: string; links?: AuthorLink[]; avatar?: string };
1920
const authors: Author[] = post.data.authors
2021
? post.data.authors
21-
: post.data.author && post.data.authorHandle
22-
? [{ name: post.data.author, handle: post.data.authorHandle }]
22+
: post.data.author
23+
? [{
24+
name: post.data.author,
25+
handle: post.data.authorHandle,
26+
url: post.data.authorUrl,
27+
avatar: post.data.authorAvatar,
28+
}]
2329
: [];
2430
31+
function getAuthorAvatar(author: Author): string {
32+
return author.avatar ?? (author.handle ? `https://unavatar.io/x/${author.handle}` : '/openclaw-logo-text-dark.png');
33+
}
34+
35+
function getAuthorLinks(author: Author): AuthorLink[] {
36+
if (author.links?.length) return author.links;
37+
const url = author.url ?? (author.handle ? `https://x.com/${author.handle}` : null);
38+
if (!url) return [];
39+
return [{
40+
label: author.handle ? `@${author.handle}` : new URL(url).hostname.replace(/^www\./, ''),
41+
url,
42+
}];
43+
}
44+
2545
function formatDate(date: Date): string {
2646
return date.toLocaleDateString('en-US', {
2747
year: 'numeric',
@@ -61,14 +81,20 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
6181
{authors.map((author) => (
6282
<div class="author-info">
6383
<img
64-
src={`https://unavatar.io/x/${author.handle}`}
84+
src={getAuthorAvatar(author)}
6585
alt={author.name}
6686
class="author-avatar"
6787
loading="lazy"
6888
/>
6989
<div class="author-details">
7090
<span class="author-name">{author.name}</span>
71-
<a href={`https://x.com/${author.handle}`} class="author-handle" target="_blank" rel="noopener">@{author.handle}</a>
91+
{getAuthorLinks(author).length > 0 && (
92+
<div class="author-links">
93+
{getAuthorLinks(author).map((link) => (
94+
<a href={link.url} class="author-handle" target="_blank" rel="noopener">{link.label}</a>
95+
))}
96+
</div>
97+
)}
7298
</div>
7399
</div>
74100
))}
@@ -142,16 +168,10 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
142168
radial-gradient(1px 1px at 250px 150px, rgba(255,255,255,0.5), transparent),
143169
radial-gradient(2px 2px at 300px 40px, rgba(255,77,77,0.4), transparent);
144170
background-size: 350px 200px;
145-
animation: twinkle 8s ease-in-out infinite alternate;
146171
pointer-events: none;
147172
z-index: 0;
148173
}
149174

150-
@keyframes twinkle {
151-
0% { opacity: 0.4; }
152-
100% { opacity: 0.7; }
153-
}
154-
155175
.nebula {
156176
position: fixed;
157177
inset: 0;
@@ -166,7 +186,7 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
166186
.container {
167187
position: relative;
168188
z-index: 1;
169-
max-width: 720px;
189+
max-width: 792px;
170190
margin: 0 auto;
171191
padding: 40px 24px;
172192
min-height: 100vh;
@@ -176,6 +196,17 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
176196

177197
.article {
178198
animation: fadeInUp 0.6s ease-out;
199+
background: var(--surface-card-strong);
200+
border: 1px solid var(--border-subtle);
201+
border-radius: 20px;
202+
padding: 56px 56px 48px;
203+
backdrop-filter: blur(14px);
204+
-webkit-backdrop-filter: blur(14px);
205+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
206+
}
207+
208+
html[data-theme='light'] .article {
209+
box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
179210
}
180211

181212
@keyframes fadeInUp {
@@ -228,7 +259,7 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
228259
gap: 16px;
229260
padding: 20px;
230261
border-radius: 12px;
231-
background: var(--surface-card-strong);
262+
background: var(--surface-inset-highlight);
232263
border: 1px solid var(--border-subtle);
233264
}
234265

@@ -263,6 +294,12 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
263294
color: var(--text-primary);
264295
}
265296

297+
.author-links {
298+
display: flex;
299+
flex-wrap: wrap;
300+
gap: 4px 10px;
301+
}
302+
266303
.author-handle {
267304
font-size: 0.85rem;
268305
color: var(--coral-bright);
@@ -390,6 +427,32 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
390427
color: var(--text-secondary);
391428
}
392429

430+
.article-content :global(.evidence-figure) {
431+
margin: 36px 0 40px;
432+
}
433+
434+
.article-content :global(.evidence-figure img) {
435+
display: block;
436+
width: 100%;
437+
max-height: none;
438+
height: auto;
439+
margin: 0;
440+
object-fit: initial;
441+
border-radius: 12px;
442+
}
443+
444+
.article-content :global(.evidence-figure figcaption) {
445+
margin-top: 12px;
446+
color: var(--text-muted);
447+
font-size: 0.9rem;
448+
line-height: 1.55;
449+
text-align: center;
450+
}
451+
452+
.article-content :global(.evidence-figure figcaption code) {
453+
font-size: 0.86em;
454+
}
455+
393456
/* Article Footer */
394457
.article-footer {
395458
margin-top: 64px;
@@ -536,6 +599,11 @@ const postUrl = `https://openclaw.ai/blog/${post.id}`;
536599
padding: 24px 16px;
537600
}
538601

602+
.article {
603+
padding: 28px 22px 24px;
604+
border-radius: 14px;
605+
}
606+
539607
.article-meta {
540608
flex-direction: column;
541609
align-items: flex-start;

0 commit comments

Comments
 (0)