Manual analysis can identify this weakness through penetration testing, threat modeling, and interactive tools. For black-box assessment, monitor the process during login, inspect library and system calls that raise or drop privileges, and check access to resources restricted from ordinary users; this is useful without source code but mainly covers system-resource privilege issues, not application-level authorization rules.
Static approaches include comparing binary or bytecode with the permission manifest, binary or bytecode weakness analysis, disassembly followed by manual review, manual source-code review, focused source spot checks, source-code weakness analyzers, and context-configured analyzers. Additional approaches include configuration checking, permission-manifest analysis, host-based vulnerability scanners, host application interface scanners, and architecture or design review using IEEE 1028 inspection, formal methods, correct-by-construction methods, and attack modeling. The record rates manual source review, binary or bytecode comparison with the permission manifest, and architecture or design review methods as highly effective or very effective; several other methods are identified as providing partial coverage.