Security software that uses 'code hooking' opens the door to hackers

The flaws allow hackers to easily bypass exploit mitigations in the OS and third-party apps

Some of the intrusive techniques used by security, performance, virtualization and other types of programs to monitor third-party processes have introduced vulnerabilities that hackers can exploit.

Researchers from data exfiltration prevention company enSilo found six common security issues affecting over 15 products when they studied how software vendors use 'hooking' to inject code into a process in order to intercept, monitor or modify the potentially sensitive system API (application programming interface) calls made by that process.

Most of the flaws enSilo found allow attackers to easily bypass the anti-exploit mitigations available in Windows or third-party applications, allowing attackers to exploit vulnerabilities that they couldn't otherwise or whose exploitation would have been difficult. Other flaws allow attackers to remain undetected on victims' computers or to inject malicious code into any process running on them, the enSilo researchers said in a report sent via email that's scheduled to be published Tuesday.

The hooking method is used extensively in the antivirus world to monitor for potentially malicious behavior, but is also used by anti-exploitation, virtualization, performance monitoring and sandboxing applications. Some malware programs also hook browser processes to launch so-called Man-in-the-Browser attacks.

Antivirus programs accounted for most of the affected products the security company identified, but one vulnerability also exists in a commercial hooking engine developed by Microsoft and used by over 100 other software vendors.

EnSilo identified affected products from AVG, Kaspersky Lab, McAfee/Intel Security, Symantec, Trend Micro, Bitdefender, Citrix, Webroot, Avast, Emsisoft and Vera Security.

Some of these vendors have released fixes for the flaws, but patching is not easy because it often requires recompiling each affected product individually. Microsoft plans to release patches for its Microsoft Detours hooking engine in August, enSilo said. 

Bitdefender said it fixed the problem on Jan. 19, and has pushed the fix out to affected customers. Microsoft and Symantec did not immediately respond to a request for comment.

The researchers plan to release technical details of the vulnerabilities during the upcoming Black Hat security conference in Las Vegas in early August.

This is not the first time this type of security weakness has been introduced by antivirus products. Last year, the enSilo researchers found that products from Intel Security, Kaspersky Lab and AVG allocated a memory page with read, write and execute permissions to user-mode processes. This allowed attackers to bypass anti-exploitation protections such as address space layout randomization (ASLR) and data execution prevention (DEP) for third-party applications.

In fact, it was that discovery that fuelled this larger research into hooking implementations used by different products.

It's hard to estimate the number of vulnerable systems, but since the affected software includes the Microsoft Detours engine, the enSilo researchers believe that hundreds of thousands of users might be affected. According to them, the Detours vulnerability has existed for at least eight years.

"Companies using affected software should get patches from the vendors, if available," the enSilo researchers said. "Customers using software from the affected vendors should contact their vendors and demand that the software be patched."

Join the CSO newsletter!

Error: Please check your email address.

More about AvastCitrixCustomersEmsisoftIntelIntel SecurityKasperskyMicrosoftSymantecTrend MicroWebroot

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Lucian Constantin

Latest Videos

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

  • 150x50

    IDG Live Webinar:The right collaboration strategy will help your business take flight

    Speakers - Mike Harris, Engineering Services Manager, Jetstar - Christopher Johnson, IT Director APAC, 20th Century Fox - Brent Maxwell, Director of Information Systems, THE ICONIC - IDG MC/Moderator Anthony Caruana

    Play Video

More videos

Blog Posts

Market Place