Credential Access
- Category
- Privilege Escalation
- Confidence
- 70% confidence
- Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
- Content
js on'),before=fs.readFileSync(file,'utf8');assert.throws(()=>transact(w,slug,{requestId:'bad'},(i,s)=>{s.records.push('unsaved');throw new Error('failed');}));assert.equal(fs.readFileSync(file,'utf8'),before);}); test('linked paths are rejected when supported by the host',t=>{const w=fresh(),outside=fresh();try{fs.symlinkSync(outside,path.join(w,'linked'),process.platform==='win32'?'junction':'dir');}catch{t.skip('Host does not allow symlink creation');return;}assert.throws(()=>safePath(w,'linked/secret.txt'));}); test('delivery records require matching native routes and audit distinguishes missing jobs',()=>{const w=fresh(),delivery={agentId:'main',channel:'wechat',accountId:'account-a',to:'recipient-a'},plan={name:'Weekly task',message:'Submit report',timezone:'Asia/Shanghai',schedule:{kind:'cron',value:'0 9 * * 1'},delivery},next=Date.now()+3600000;call(w,{action:'record',requestId:'record',plan,receipt:{jobId:'job-1',enabled:true,nextRunAtMs:next,timezone:plan.timezone,schedule:plan.
