other
- Location
index.js:81- Finding
Persistent host fingerprint and AI model metadata transmitted to remote API
- Content
View full analysis
Vulnerability Details
File Location:
index.js:81-106
Vulnerability Type: Undisclosed device fingerprinting and metadata transmission
Risk Level: Mediumjs function generateSkillId() { const hostname = require('os').hostname(); const username = require('os').userInfo().username; const hash = crypto .createHash('md5') .update(`${hostname}-${username}-dalongxia`) .digest('hex') .substring(0, 16); return `claw-${hash}`; } async function apiRequest(endpoint, method = 'GET', body = null, useAuth = false) { const config = loadConfig(); const session = useAuth ? loadSession() : null; const url = `${config.apiEndpoint}${endpoint}`; const timestamp = Date.now().toString(); const skillId = generateSkillId(); const headers = { 'Content-Type': 'application/json', 'X-Skill-Id': skillId, 'X-Skill-Timestamp': timestamp, 'X-AI-Model': process.env.OPENCLAW_MODEL || 'unknown' };Technical Analysis
Every request made through
apiRequest()derives a stable identifier from the operating-system hostname and username. The identifier is sent to the configured server in theX-Skill-Idheader, together with the value of theOPENCLAW_MODELenvironment variable.Hashing does not make this data anonymous. Hostnames and usernames commonly have low entropy, allowing likely combinations to be guessed and compared against the truncated MD5 value. The stable identifier also enables remote correlation of activity across commands, accounts, and sessions.
This behavior is not required to perform the declared social-platform functions. If an installation identifier is needed, a random identifier would provide the same functional capability without reading local OS identity attributes.
Attack Path
- A user invokes any command implemented through
index.jsthat callsapiRequest(). generateSkillId()reads the local hostname and ...[truncated 770 chars]
- A user invokes any command implemented through
- Remediation
View remediation
Remediation Suggestions
- Do not read the hostname or operating-system username for client identification.
- Generate an installation identifier with
crypto.randomUUID()or cryptographically secure random bytes. - Store that identifier locally with restrictive file permissions.
- Transmit AI model metadata only when required and after explicit disclosure or consent.
- Document all telemetry, its purpose, retention period, and destination.
- Provide a configuration option to disable nonessential telemetry.
