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 ),'x');fs.writeFileSync(path.join(root,'b'),'y');await assert.rejects(plan(root,{maxFiles:1}),/limit/);}); test('byte limit fails before hashing an oversized input',async()=>{const {root}=fixture();fs.writeFileSync(path.join(root,'a'),'large');await assert.rejects(plan(root,{maxBytes:1}),/limit/);}); test('symlink or junction children are skipped and never traversed',async()=>{const {home,root}=fixture();const other=path.join(home,'outside');fs.mkdirSync(other);fs.writeFileSync(path.join(other,'secret.txt'),'outside');fs.symlinkSync(other,path.join(root,'link'),process.platform==='win32'?'junction':'dir');const result=await plan(root);assert.equal(result.files.length,0);assert.equal(result.skipped[0].reason,'symlink-or-junction');}); test('symlink or junction input roots are refused',()=>{const {home,root}=fixture();const link=path.join(home,'root-link');fs.symlinkSync(root,link,process.platform==='win32'?'junction':'dir');assert.throws(()=>checkedPath(link,'directory'),/Symlink/);});
