{"id":1951,"date":"2025-02-13T10:03:33","date_gmt":"2025-02-13T10:03:33","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/02\/13\/hackers-using-pyramid-pentesting-tool-for-stealthy-c2-communications\/"},"modified":"2025-02-13T10:03:33","modified_gmt":"2025-02-13T10:03:33","slug":"hackers-using-pyramid-pentesting-tool-for-stealthy-c2-communications","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/02\/13\/hackers-using-pyramid-pentesting-tool-for-stealthy-c2-communications\/","title":{"rendered":"Hackers Using Pyramid Pentesting Tool For Stealthy C2 Communications"},"content":{"rendered":"<p>    Hackers Using Pyramid Pentesting Tool For Stealthy C2 Communications<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>Hackers have been leveraging the open-source Pyramid pentesting tool to establish stealthy command-and-control (C2) communications.<\/p>\n<p>Pyramid, first released on GitHub in 2023, is a Python-based post-exploitation framework designed to evade <a href=\"https:\/\/cybersecuritynews.com\/endpoint-management-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">endpoint detection<\/a> and response (EDR) tools.<\/p>\n<p>Its lightweight HTTP\/S server capabilities make it an attractive choice for malicious actors seeking to minimize detection.<\/p>\n<p>Pyramid is built on Python\u2019s legitimate presence in many environments, utilizing a Python-based HTTP\/S server to deliver files and act as a C2 server for offensive operations.<\/p>\n<p>The framework includes modules that load well-known tools like BloodHound, secretsdump, and LaZagne directly into memory.<\/p>\n<p>Security analysts at Hunt.io <a href=\"https:\/\/hunt.io\/blog\/tracking-pyramid-c2-identifying-post-exploitation-servers\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">identified<\/a> that this in-memory execution allows operators to act within the context of a signed Python interpreter, potentially bypassing traditional endpoint security measures.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi0RP3ilWP7z_dFNNAxHuNzWdGWGHb1hLR9ZGjPAw5sqDBj-Rp7x4QLJ_v037D-cS7kLOFJ70GV1POZKOVFcAq9Usn-GeCFHMzbfz017joa73bRi6ZAoN4xAUSar30Irq5zJlQLxmK9M-erPogkyeggbMdUfNgZ0-Xa9qI8QDD5I0CR6W0v4MNHrDDwiFY\/s16000\/Pyramid%2520README%2520Screenshot%2520%28Source%2520-%2520Hunt.io%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Pyramid README Screenshot (Source \u2013 Hunt.io)<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\"><strong>Detection Opportunities<\/strong><\/h2>\n<p>Identifying Pyramid servers involves analyzing specific network signatures. When interacting with a suspected Pyramid server, the response headers exhibit distinct characteristics:<\/p>\n<pre class=\"wp-block-code\"><code>Server: BaseHTTP\/0.6 Python\/3.10.4\nDate:\nWWW-Authenticate: Basic realm=\"Demo Realm\"\nContent-Type: application\/json<\/code><\/pre>\n<p>The server also returns a JSON response body:-<\/p>\n<pre class=\"wp-block-code\"><code>{\n  \"success\": false,\n  \"error\": \"No auth header received\"\n}<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgNEJmgofpUxGrju8y2Movxd1qALQlBd2fOxwJrvtYfEKZ0PyuNWR9IM5e-LIy61g-qyC5V_h4MQvQrARF5369zlP8cf-PspSD-wZsWFyGiFk0QSY5X4jQ3lH4sYccEvvWrPplEqrCINtFk5yN4xVb2P3iWIlS8PLSWvVqkf8O5kfT_5kafOvef8EHIG4M\/s16000\/Pyramid%2520C2%2520HTTP%2520401%2520Response%2520%28Source%2520-%2520Hunt.io%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Pyramid C2 HTTP 401 Response (Source \u2013 Hunt.io)<\/figcaption><\/figure>\n<\/div>\n<p>Recent scans have identified several IP addresses associated with Pyramid servers, including 104.238.61[.]144, 92.118.112[.]208, and 45.82.85[.]50.<\/p>\n<p>These servers were linked to domains resembling DevaGroup, an <a href=\"https:\/\/cybersecuritynews.com\/the-future-of-digital-marketing-why-native-ads-are-leading-the-way\/\" target=\"_blank\" rel=\"noreferrer noopener\">internet marketing<\/a> service, though no malicious samples have been found yet.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh9BgjT2vlIXDtPtAo3ikxzCWrGXmP9mIpKdnjWQtZsr-Z7dUUOb_3zh7ZvJWACKxahF80nLbzaM_SWLXQp9YdRtYhqWz4nsSm-efMcCr0hxny2dPXNgFnB8OA_m0hWzann82lqAe2R5lACpxu0Iio-4CcVPpchd6q2JUOcjFCcFs-FilCuPr4nLuA6RCw\/s16000\/Pyramid%2520C2%2520Servers%2520Tracked%2520%28Source%2520-%2520Hunt.io%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Pyramid C2 Servers Tracked (Source \u2013 Hunt.io)<\/figcaption><\/figure>\n<\/div>\n<p>Technical Details for Detection:-<\/p>\n<ul class=\"wp-block-list\">\n<li>\n<strong>HTTP Status Code:<\/strong> 401 Unauthorized<\/li>\n<li>\n<strong>Response Body Hash (SHA-256):<\/strong> 54477efe7ddfa471efdcc83f2e1ffb5687ac9dca2bc8a2b86b2 53cdbb5cb9c84<\/li>\n<li>\n<strong>Server Header:<\/strong> BaseHTTP\/0.* Python\/3.*<\/li>\n<li>\n<strong>Authentication and Content Headers:<\/strong> WWW-Authenticate: Basic realm=\u201dDemo Realm\u201d and Content-Type: application\/json<\/li>\n<\/ul>\n<p>These parameters can be used to craft structured queries for identifying Pyramid-related infrastructure, enhancing cybersecurity defenses.<\/p>\n<p>By focusing on <a href=\"https:\/\/cybersecuritynews.com\/certificate-based-authentication\/\" target=\"_blank\" rel=\"noreferrer noopener\">authentication challenges<\/a>, response headers, and specific error messages, defenders can improve detection fidelity and minimize false positives.<\/p>\n<p>As open-source <a href=\"https:\/\/cybersecuritynews.com\/win-kex-2-0\/\" target=\"_blank\" rel=\"noreferrer noopener\">offensive security<\/a> tools continue to advance, tracking similar implementations will provide early warnings of new infrastructure and refine detection methodologies.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 89%,rgb(169,184,195) 100%)\"><strong><code><strong><code>Investigate Real-World Malicious Links &amp; Phishing Attacks With\u00a0<strong>Threat Intelligence Lookup<\/strong>\u00a0-\u00a0<a href=\"https:\/\/intelligence.any.run\/analysis\/lookup?utm_source=csn_feb&amp;utm_medium=article&amp;utm_campaign=ti&amp;utm_content=lookup-tasks-1&amp;utm_term=120225\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Try for Free<\/a><\/code><\/strong><\/code><\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/hackers-using-pyramid-pentesting-tool\/\">Hackers Using Pyramid Pentesting Tool For Stealthy C2 Communications<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Tushar Subhra Dutta<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/hackers-using-pyramid-pentesting-tool\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Using Pyramid Pentesting Tool For Stealthy C2 Communications Hackers have been leveraging the open-source Pyramid pentesting tool to establish stealthy command-and-control (C2) communications. Pyramid, first released on GitHub in 2023, is a Python-based post-exploitation framework designed to evade endpoint detection and response (EDR) tools. Its lightweight HTTP\/S server capabilities make it an attractive choice [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,649],"tags":[130],"class_list":["post-1951","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-threats","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1951"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=1951"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1951\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=1951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=1951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=1951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}