Skip to content

Commit

Permalink
Additional tests added to the import analysis plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticeRage committed Jul 31, 2017
1 parent dbd5e41 commit 0385fc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/plugin_imports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ class ImportsPlugin : public IPlugin
check_functions(pe, packer_api, SUSPICIOUS, "Memory manipulation functions often used by packers", AT_LEAST_TWO, res);
check_functions(pe, http_api, NO_OPINION, "Has Internet access capabilities", AT_LEAST_ONE, res);
// WS2_32.dll seems to be imported by ordinal more often than not, so check for DLL presence instead of individual functions.
check_dlls(pe, "WS2_32.dll", SUSPICIOUS, "Leverages the raw socket API to access the Internet", res);
check_dlls(pe, "WS2_32.dll|WSOCK32.dll", SUSPICIOUS, "Leverages the raw socket API to access the Internet", res);
check_dlls(pe, "wpcap.dll", SUSPICIOUS, "Has network sniffing capabilities", res);
check_functions(pe, privilege_api, MALICIOUS, "Functions related to the privilege level", AT_LEAST_ONE, res);
check_functions(pe, service_manipulation_api, SUSPICIOUS, "Interacts with services", AT_LEAST_ONE, res);
check_functions(pe, hdd_enumeration, NO_OPINION, "Enumerates local disk drives", AT_LEAST_ONE, res);
Expand Down

0 comments on commit 0385fc8

Please sign in to comment.