MASTG-TECH-0115: Obtaining Compiler-Provided Security Features
Run rabin2 on the target binary, for example a shared library and grep for the keywords you'd like to check for.
rabin2 -I lib/x86_64/libnative-lib.so | grep -E "canary|pic"
canary false
Tests¶
MASTG-TEST-0223: Stack Canaries Not Enabled MASTG-TEST-0222: Position Independent Code (PIC) Not Enabled