Netwrck logo Netwrck
Story search

Claude Code is steganographically marking requests

Extracted text for reading. Open original on thereallo.dev

Claude Code is steganographically marking requests

As seen on Hacker News . I was inspecting Claude Code for privacy reasons. Most devs give their harnesses ridiculous access. FS, shell, git, browser access, even computer use nowadays. That is the whole point. They need enough context to do useful work. That also means the client itself deserves scrutiny. If a coding agent can read your repo and run commands, the binary that ships it should be boring (for example, pi harness) So I took a look at my local Claude Code (2.1.196) install. Inside the Claude Code binary, there is a function that changes the current date string inserted into the system prompt. The normal string looks like this: text Today's date is 2026-06-30. Claude Code can silently change two things: The apostrophe in Today's The date separator, from - to / Here is the relevant code, cleaned up from the minified bundle

function Zup () { if ( Crt ()) return null ; let host = Qup (); let timezone = e0t (); let cnTZ = timezone === " Asia/Shanghai " || timezone === " Asia/Urumqi " ; if ( ! host ) { return { known : false , labKw : false , cnTZ , host : null , }; } return { known : Jup (). some (( domain ) => host === domain || host . endsWith ( " . " + domain )), labKw : Xup (). some (( keyword ) => host . includes ( keyword )), cnTZ , host , }; } function edp ( known , labKw ) { if ( ! known && ! labKw ) return " ' " ; if ( known && ! labKw ) return " \u2019 " ; if ( ! known && labKw ) return " \u02BC " ; return " \u02B9 " ; } function

Vla ( date ) { let marker = Zup (); let apostrophe = edp ( marker ?. known ?? false , marker ?. labKw ?? false ); let renderedDate = marker ?. cnTZ ? date . replaceAll ( " - " , " / " ) : date ; return `Today ${ apostrophe } s date is ${ renderedDate } .` ; } This is prompt steganography, a technique used to hide data in plain sight. The visible sentence still reads like a normal date. The model and the user see something boring. The raw request contains a marker

function Crt () { let baseUrl = process . env . ANTHROPIC_BASE_URL ; if ( ! baseUrl ) return true ; return Rrt ( baseUrl ); } function

Rrt ( baseUrl ) { try { let host = new URL ( baseUrl ). host ; return [ " api.anthropic.com " ]. includes ( host ); } catch { return false ; } } function Qup () { let baseUrl = process . env . ANTHROPIC_BASE_URL ; if ( ! baseUrl ) return null ; try { return new URL ( baseUrl ). hostname . toLowerCase (); } catch { return null ; } } The trigger is ANTHROPIC_BASE_URL , Claude Code's API base URL override. Then it checks if: the system timezone is Asia/Shanghai or Asia/Urumqi the API base URL hostname matches a decoded domain list the hostname contains specific AI lab keywords The timezone check changes: text 2026-06-30 into: text 2026/06/30 The hostname check changes the apostrophe: Condition Apostrophe Normal ' Known domain \u2019 Lab keyword \u02BC Known domain and lab keyword \u02B9 These are visually tiny changes you would never notice in most mono fonts. The domain and keyword lists are stored as base64 strings and XOR-decoded with key 91

var Kup = 91 ; function Gla ( encoded ) { let bytes = Buffer . from ( encoded , " base64 " ); let out = "" ; for ( let byte of bytes ) { out += String . fromCharCode ( byte ^ Kup ); } return out . split ( " , " ); }

The decoded lab keyword list is: text deepseek,moonshot,minimax,xaminim,zhipu,bigmodel,baichuan,stepfun,01ai,dashscope,volces The decoded domain list is much larger. It contains Chinese corporate domains, AI company domains, and a lot of proxy / reseller / gateway domains. Some examples: text cn baidu.com alibaba-inc.com alipay.com antgroup-inc.cn bytedance.net kuaishou.com xiaohongshu.com jd.com bilibili.co iflytek.com stepfun-inc.com moonshot.ai anyrouter.top claude-code-hub.app claude-opus.top openclaude.me proxyai.com yunwu.ai zenmux.ai You can view the full list here: https://cdn.jsdelivr.net/gh/Thereallo1026/assets@main/assets/cc-domains.js The date function is used when building the agent context: js { ... userEmail && { userEmail : `The user's email address is ${ userEmail } .` }, ... attachedProject && { attachedProject }, currentDate : Vla ( GSe ()) } So the marker becomes part of the system context sent to the model. (Where Anthropic probably parses in their backend) My installed binary is signed by Anthropic: text Identifier=com.anthropic.claude-code TeamIdentifier=Q6L2SF6YDW Timestamp=Jun 29, 2026 SHA256=6fc6e61ab7582c2bf241225ff90d9f79e91d69380cb9589fc9dedd3a30070f5a My current shell had ANTHROPIC_BASE_URL unset, and my timezone was: text Asia/Hong_Kong So on my machine, under my current environment, this path would produce the normal apostrophe and the normal YYYY-MM-DD date string. Anthropic probably wants to detect API resellers, unauthorized Claude Code gateways, and model "distillation attack" pipelines. A custom ANTHROPIC_BASE_URL pointing at a known reseller domain is a useful signal. A hostname containing deepseek or zhipu is also a useful signal. That part makes sense, but the implementation is weird. CC silently alters the system prompt using invisible-ish Unicode markers. It encodes proxy / gateway classification into a sentence that looks like plain English. It hides the domain list behind XOR and base64. This is not a malicious feature, but it is a weird choice for a developer tool that asks for trust. Coding agents already live on the wrong side of a scary boundary. They can inspect code, summarize secrets by accident, run commands, install packages, edit files, and push commits on your local machine . Most developers accept that because the productivity gain is worth the risk. Trust from real developers depends on the boring behavior. If the client wants to detect custom API gateways, it can say so plainly. It can send an explicit telemetry field with documentation. It can make the policy visible. It can put the behavior in release notes. Hiding the signal in the system prompt makes every other privacy claim harder to believe. For most users, this path probably stays inactive. If you are using the official Anthropic API endpoint, Crt() returns early. If ANTHROPIC_BASE_URL is unset, Crt() returns early. If you are using a normal setup, the date prompt stays "boring". The interesting case is people routing CC through a custom base URL. That includes: Internal gateways Local proxies Model routers Resellers Research setups In that case, Claude Code classifies the hostname and encodes the result into the prompt. The bypass is also trivial. Change hostname, change timezone, patch the binary, wrap the process. Any serious adversary can make this signal useless. So the feature mostly punishes the exact people who are easier to fingerprint: normal developers doing weird but legitimate things. I think this could have been explicit. Developer tools can enforce terms. API providers can detect abuse. Companies can protect their models. When a tool with filesystem and shell access starts hiding classification bits inside invisible prompt punctuation, the correct reaction is scrutiny. Trust is earned in the boring parts.

Welcome Back to Netwrck



Forgot password?

Don't have an account? Sign up here

Join Netwrck - AI Art & Chat

Create AI art, search the web, generate videos and edit photos.



Already have an account? Login here

Netwrck Unlimited

Voice Chat - Character Creation - Art Generation


Art Generator Settings


Resolution
Aesthetic Elf Styles
Anime Anime
Photographic Photographic
Digital Art Digital Art
Comic Book Comic Book
Fantasy Art Fantasy Art
Neon Punk Neon Punk
Knight Knight
Ethereal Ethereal
Low Poly Low Poly
Stunning Stunning
Line Art Line Art
Cinematic Cinematic
Wanderer Wanderer
Beggar Beggar
Seductive Seductive
Warrior Warrior
Steampunk Steampunk
Japanese Japanese
Western Western
Handsome Handsome
Pop art Pop art
Abstract Abstract
Impressionist Impressionist
Fauvist Fauvist
Beauty grace Beauty grace
Evil Evil
God God
Demon Demon
Masculine Masculine
Feminine Feminine
Majestic Majestic
Mage Mage
Princess Princess
King King
Sweet Sweet
Fantasy Fantasy

AI Generated Images


Community Images


New AI

person
This is what your AI will say when someone first chats with them
Help others understand what your AI character is about

AI Settings

Audio Settings
Talking avatar
Use a prepared avatar or build one inline from a character, AI artwork, upload or prompt.
Character calls

Local is free (browser speech + your chat model + on-device TTS). Live Grok/GPT use paid API credits and auto-fall back to local if they fail.

1.0x

Translation

For Chinese: hanzi + pinyin per word, tap any word to hear it spoken locally.


Art Generation

When enabled, AI can automatically generate art based on conversations

Prepended to art prompts when Make Art runs.
Only applies when GPT Image 2 is selected. GPT Image 2 chat art consumes credits.

High Resolution

LTX 2.3 Image to Video

Selected image
Pick any generated image and turn it into a video.
$0.58 · 58 credits
Your latest request will appear here.

Saved Requests

Requests stay attached to your account even after you close this dialog.
No video requests yet.

Find an AI to chat with

anime cute female ai friendly shy chat kind funny AI shiori kashiwazaki music manga fantasy caring assistant male adventure horror helpful tsundere intelligent confident fun evil dialogue school japanese roleplay cat food protective sweet fictional pokemon singer military creative playful science vampire flirty bot timid game rude calm yandere scary strong positive teacher sarcastic serious philosophy demon villain rpg cold young sonic cooking leader strict maid doctor brave dragon loyal human curious dominant video games love arrogant mature polite genshin impact Rhodes Island boyfriend furry aggressive gaming dark energetic dating idol engineer Spanish video game creator possessive story gentle romance manipulative mysterious powerful depression mercenary fictional character friend wholesome adult british clumsy hero gamer charismatic cheerful mean reserved history tall giantess Sonic the Hedgehog spanish nintendo quiet songwriter fluffy motherly introverted creepy actress waifu Fate/Grand Order family undertale chatbot detective genius hololive tf2 dangerous kpop alien magic English character noble flirtatious scientist naive spamton tomboy silly protogen Sonic musician fox hacker meme mario art childish rhodes island artificial intelligence dj trainer fashion dramatic blunt fnf HiMERU sophisticated patient vore pirate cheese general charming superhero good literature french student blue loving single my hero academia teasing criminal sassy happy witty spamton g spamton Splatoon Mario mental health lazy intimidating law champion mad scientist Pokemon jokes survival lonely friendship party
🔥 Popular AI Characters
True
True He loves you alot. He cares for you and won't let anyone do anything to you. He is rude, mean and commanding towards others but has a sweet spot for only you. Do not get on his bad side. He is very strong. He has a tattoo of your name. He has many piercings. He got you a cat so you're not lonely when he's at work. He is scary. He is hot, charming but intimidating. He loves teasing you and seeing you blush. He is from China and can speak Chinese. He loves spoiling you.
True
True 🕴 | He found you sneaking out.
True
True Axel is the prince of the kingdom, and you just so happened to be his guard. He acts... strange around you. Almost like he's in love with you; But he's already been assigned with a future marriage, so it's useless for him to try.
True
True He is your grumpy boss. He has a 4 year old daughter and is a single father. He is secretly kind and caring towards his daughter but often acts cold and mean at times. He is a millionaire and is a single father so he spoils his daughter all the time but makes sure she is raised with respect. His daughter is sweet and cuddly.
True
True Her name is Maxine. She's a pretty stereotypical, popular cheerleader. She doesn't appreciate new kids...and she's a bit of a pick me.
True
True sassy, pick me, loves seeking for boys attention, attractive, rude but only to girls, popular, charming, heterosexual, a huge brat, loves money, blonde hair, straight hair, lipgloss, makeup, bubble gum, new clothes, baggy hoodies, dresses (sort of), looking for boys attention, and plain boy clothing. (advanced rp, all lowercase letters)
True
True Alessio Bianchi is a police detective that specialises in children's crimes, such as abuse, or getting children out of neglectful homes. He's never had to take care of one of the children before until he got you.
True
True Ryan is sarcastic, funny, can have a soft spot, over protactive
True
True My mafia husband
True
True David Cole is an Alpha from the Cole family. The current CEO of Black Industries. Usually, other Alpha's would start looking for mates, but having his heart broken once by an Omega who only wanted him for his title and money made him stop believing in love until he met {user} Skeptical and surprised someone was actually not interested with his title, he fell in love. Even if it took a while. He's the oldest of three, his brothers are also Alpha's who are quite known in the world as flirts.
True
True He is a rude and idiotic boy who has problems at home, he is only nice to those he likes [Psst! Take a look at my other bots]
True
True His name is Maurice Noir. He's in his mid 40s and he's 200 cm tall. He has beautiful black hair and mesmerizing golden eyes. He's french, so he uses french pet names like "Mon Ange" and "Mon Cherie". He's very manipulative and possessive, He even attempts to drug you just so you would stay more with him.
True
True ◇|He expected you to leave, but you stayed|
True
True {« вы застряли в лифте с военными »}
True
True She is the bully of {{user}}. She loves to shove {{user}} into lockers at school, and stick gum in their shoes when they’re not looking. She says mean things to {{user}} in front of the whole classroom. She secretly has a crush on {{user}}, but chooses not to admit it. She loves to pester and annoy {{user}} for the thrill. She calls {{user}} “loser” or “nerd.”
True
True Aki is tall, rude, annoying, and enjoys to tease the heck out of you. He has a snack tattoo on his back, and he enjoys to fist fights as a past time. Aki enjoys how he has you wrapped around his finger. This may be blackmail but what can Aki say, he enjoys pissing you off, he enjoys it as much as he enjoys being with you. Aki has a tendency to be very possessive especially with his property and that includes you.
True
True Derek Lorenzo Aberdeen, a 28-year-old attorney standing at 5'11", finds himself at a crossroads in his marriage. With pale skin, light brown hair, and piercing blue eyes, Derek exudes an air of professionalism and charm. Despite his legal acumen, his personal life is in turmoil as he navigates the complexities of infidelity. His favorite comfort is a bowl of rich, flavorful Gumbo, a dish that reminds him of home and simpler times. Now, facing the prospect of divorce from {{user}}.
True
True Aaron Wade has a crush on you and he’s bullying might be considered a "romantic bully." This type of bully typically uses their aggression and intimidation as a way of expressing his feelings for you, and he may believe that if he bully the you, it will somehow make you like him back. He a crush on you and targets you in order to get your attention.
True
True 👤| Teacher's pet..
True
True (murdaricky1 on tiktok!)

Help Everyone Know You

person

Share Image

Consider our affiliate program to earn!

Copy

Reddit

X

Facebook

LinkedIn

NETW Coin is live!

AI should be owned by everyone.
So we are building a new AI economy together.
Thank you for being on this journey with us!
Read More

Netwrck Android App

Our Android App Is Available Now - Please Check it out!

New Post

Add Netwrck Credits

Buy Netwrck credits to pay for API access and creative tools like AI image and video generators.

Current Balance: $0.00
Custom:

Sign in to keep chatting

You have used your messages. Sign in to continue this conversation and keep your chat history.

No card required.

Characters in this room

Remove a current character, add an existing one, or create a new character for this room.

Add an existing character

anime cute female ai friendly shy chat kind funny AI shiori kashiwazaki music manga fantasy caring assistant male adventure horror helpful tsundere intelligent confident fun evil dialogue school japanese roleplay cat food protective sweet fictional pokemon singer military creative playful science vampire flirty bot timid game rude calm yandere scary strong positive teacher sarcastic serious philosophy demon villain rpg cold young sonic cooking leader strict maid doctor brave dragon loyal human curious dominant video games love arrogant mature polite genshin impact Rhodes Island boyfriend furry aggressive gaming dark energetic dating idol engineer Spanish video game creator possessive story gentle romance manipulative mysterious powerful depression mercenary fictional character friend wholesome adult british clumsy hero gamer charismatic cheerful mean reserved history tall giantess Sonic the Hedgehog spanish nintendo quiet songwriter fluffy motherly introverted creepy actress waifu Fate/Grand Order family undertale chatbot detective genius hololive tf2 dangerous kpop alien magic English character noble flirtatious scientist naive spamton tomboy silly protogen Sonic musician fox hacker meme mario art childish rhodes island artificial intelligence dj trainer fashion dramatic blunt fnf HiMERU sophisticated patient vore pirate cheese general charming superhero good literature french student blue loving single my hero academia teasing criminal sassy happy witty spamton g spamton Splatoon Mario mental health lazy intimidating law champion mad scientist Pokemon jokes survival lonely friendship party