Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Securix monitor: verify ET_DYN ELF format on all running processes #70

Open
martinholovsky opened this issue Dec 28, 2014 · 0 comments
Open
Assignees

Comments

@martinholovsky
Copy link
Owner

  • Hourly cron

idea (dirty code):

LIST="$(find -L /proc/*/exe -xtype l -exec test -e {} \; -print)"
# waiting on temp processes to end
sleep 1
# verify existence of files and ELF format
for elfformat in ${LIST}; do
    if [[ "$(file ${elfformat})" == "*ELF*" ]]; then
        if [[ "$(readelf -h ${elfformat} | grep "Type")" != "*DYN*" ]]; then
            echo "ELF file which is not in ET_DYN ELF format - ${elfformat}" >> ${SECURIXVAR}/elf-format.warn
        fi
    fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant