update security examples

some typos, fix handling of whitelist/blacklist
Merge pull request #482 from minrk/security-examples

update security examples