{"id":1883,"date":"2023-09-21T02:45:25","date_gmt":"2023-09-20T18:45:25","guid":{"rendered":"https:\/\/www.aqwu.net\/wp\/?p=1883"},"modified":"2023-09-21T02:49:42","modified_gmt":"2023-09-20T18:49:42","slug":"callisto-%e6%99%ba%e8%83%bd%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%bc%8f%e6%b4%9e%e5%88%86%e6%9e%90%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=1883","title":{"rendered":"Callisto &#8211; \u667a\u80fd\u4e8c\u8fdb\u5236\u6f0f\u6d1e\u5206\u6790\u5de5\u5177"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"251\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/09\/\u56fe\u7247-15.png\" alt=\"\" class=\"wp-image-1884\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/09\/\u56fe\u7247-15.png 640w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/09\/\u56fe\u7247-15-300x118.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p><strong>Callisto<\/strong>\u662f\u4e00\u4e2a\u667a\u80fd\u7684\u81ea\u52a8\u4e8c\u8fdb\u5236\u6f0f\u6d1e\u5206\u6790\u5de5\u5177\u3002\u5176\u76ee\u7684\u662f\u81ea\u4e3b\u53cd\u7f16\u8bd1\u63d0\u4f9b\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5e76\u904d\u5386\u4f2a\u4ee3\u7801\u8f93\u51fa\uff0c\u4ee5\u67e5\u627e\u8be5\u4f2a c \u4ee3\u7801\u4e2d\u7684\u6f5c\u5728\u5b89\u5168<a rel=\"noreferrer noopener\" href=\"https:\/\/www.kitploit.com\/search\/label\/vulnerabilities\" target=\"_blank\">\u6f0f\u6d1e<\/a>\u3002<strong>Ghidra\u7684<\/strong>\u65e0\u5934\u53cd\u7f16\u8bd1\u5668\u662f\u9a71\u52a8\u4e8c\u8fdb\u5236\u53cd\u7f16\u8bd1\u548c\u5206\u6790\u90e8\u5206\u7684\u539f\u56e0\u3002\u4f2a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.kitploit.com\/search\/label\/Code%20Analysis\" target=\"_blank\">\u4ee3\u7801\u5206\u6790<\/a>\u6700\u521d\u7531<strong>Semgrep<\/strong>&nbsp;SAST\u5de5\u5177\u6267\u884c\uff0c\u7136\u540e\u8f6c\u79fb\u5230<strong>GPT-3.5-Turbo<\/strong>\uff0c\u4ee5\u9a8c\u8bc1Semgrep\u7684\u53d1\u73b0\uff0c\u4ee5\u53ca\u6f5c\u5728\u8bc6\u522b\u5176\u4ed6\u6f0f\u6d1e\u3002<\/p>\n\n\n\n<p>\u6b64\u5de5\u5177\u7684\u9884\u671f\u7528\u9014\u662f\u534f\u52a9<a href=\"https:\/\/www.kitploit.com\/search\/label\/Binary%20Analysis\" target=\"_blank\" rel=\"noreferrer noopener\">\u4e8c\u8fdb\u5236\u5206\u6790\u548c<\/a>\u96f6\u65e5\u6f0f\u6d1e\u53d1\u73b0\u3002\u8f93\u51fa\u65e8\u5728\u5e2e\u52a9\u7814\u7a76\u4eba\u5458\u8bc6\u522b\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u6f5c\u5728\u7684\u611f\u5174\u8da3\u533a\u57df\u6216\u6613\u53d7\u653b\u51fb\u7684\u7ec4\u4ef6\uff0c\u7136\u540e\u53ef\u4ee5\u901a\u8fc7<a href=\"https:\/\/www.kitploit.com\/search\/label\/Dynamic%20Testing\" target=\"_blank\" rel=\"noreferrer noopener\">\u52a8\u6001\u6d4b\u8bd5\u8fdb\u884c\u9a8c\u8bc1<\/a>\u548c\u5229\u7528\u3002\u5b83\u5f53\u7136\u4e0d\u4f1a\u6355\u83b7\u6240\u6709\u5185\u5bb9\uff0c\u4f46\u662fSemgrep\u5bf9GPT-3.5\u7684\u53cc\u91cd\u9a8c\u8bc1\u65e8\u5728\u51cf\u5c11\u8bef\u62a5\u5e76\u5141\u8bb8\u5bf9\u7a0b\u5e8f\u8fdb\u884c\u66f4\u6df1\u5165\u7684\u5206\u6790\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u90a3\u4e9b\u5e0c\u671b\u4ec5\u5229\u7528\u8be5\u5de5\u5177\u4f5c\u4e3a\u5feb\u901f\u65e0\u5934\u53cd\u7f16\u8bd1\u5668\u7684\u4eba\uff0c\u521b\u5efa\u7684\u6587\u4ef6 <code>output.c<\/code> \u5c06\u5305\u542b\u4ece\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u63d0\u53d6\u7684\u6240\u6709\u4f2a\u4ee3\u7801\u3002\u8fd9\u53ef\u4ee5\u63d2\u5165\u60a8\u81ea\u5df1\u7684 SAST \u5de5\u5177\u6216\u624b\u52a8\u5206\u6790\u3002<\/p>\n\n\n\n<p>\u6211\u975e\u5e38\u611f\u8c22Marco Ivaldi<a href=\"https:\/\/github.com\/0xdea\" rel=\"noreferrer noopener\" target=\"_blank\">@0xdea<\/a>\u4ed6\u516c\u5f00\u53d1\u5e03\u7684\u81ea\u5b9a\u4e49Semgrep C\u89c4\u5219\u4ee5\u53ca\u4ed6\u4f7f\u7528semgrep\u548c\u53cd\u7f16\u8bd1\u5668\u7684\u4f2a\u4ee3\u7801\u8f93\u51fa\u81ea\u52a8\u53d1\u73b0\u6f0f\u6d1e\u7684\u60f3\u6cd5\u3002\u60a8\u53ef\u4ee5\u5728\u6b64\u5904\u9605\u8bfb\u6709\u5173\u4ed6\u7684\u7814\u7a76\u7684\u66f4\u591a\u4fe1\u606f\uff1a<a href=\"https:\/\/security.humanativaspa.it\/automating-binary-vulnerability-discovery-with-ghidra-and-semgrep\/\" rel=\"noreferrer noopener\" target=\"_blank\">\u4f7f\u7528Ghidra\u548cSemgrep\u81ea\u52a8\u53d1\u73b0\u4e8c\u8fdb\u5236\u6f0f\u6d1e<\/a><\/p>\n\n\n\n<p><strong>\u8981\u6c42\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u8981\u4f7f\u7528 GPT-3.5-Turbo \u529f\u80fd\uff0c\u5219\u5fc5\u987b\u5728&nbsp;<a href=\"https:\/\/platform.openai.com\/account\/api-keys\" rel=\"noreferrer noopener\" target=\"_blank\">OpenAI<\/a>&nbsp;\u4e0a\u521b\u5efa\u4e00\u4e2a API \u4ee4\u724c\u5e76\u4fdd\u5b58\u5230\u6b64\u6587\u4ef6\u5939\u4e2d\u7684 config.txt \u6587\u4ef6\u4e2d<\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/NationalSecurityAgency\/ghidra\" target=\"_blank\">Ghidra<\/a>(<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/NationalSecurityAgency\/ghidra\" target=\"_blank\">\u5409\u5fb7\u62c9)<\/a><\/li>\n\n\n\n<li>Semgrep &#8211; <code>pip install semgrep<\/code><\/li>\n\n\n\n<li>requirements.txt &#8211; <code>pip install -r requirements.txt<\/code><\/li>\n\n\n\n<li>\u786e\u4fdd\u5728<code>config.txt<\/code>\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u4e86 Ghidra \u76ee\u5f55\u7684\u6b63\u786e\u8def\u5f84<\/li>\n<\/ul>\n\n\n\n<p><strong>\u8981\u8fd0\u884c\uff1a<\/strong>&nbsp;<code>python callisto.py -b &lt;path_to_binary&gt; -ai -o &lt;path_to_output_file&gt;<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-ai<\/code> =&gt; \u542f\u7528 OpenAI GPT-3.5-Turbo Analysis\u3002\u9700\u8981\u5728\u914d\u7f6e.txt\u6587\u4ef6\u4e2d\u653e\u7f6e\u4e00\u4e2a\u6709\u6548\u7684 OpenAI API \u5bc6\u94a5<\/li>\n\n\n\n<li><code>-o<\/code> =&gt; \u5982\u679c\u8981\u4fdd\u5b58\u8f93\u51fa\uff0c\u8bf7\u5b9a\u4e49\u8f93\u51fa\u6587\u4ef6<\/li>\n\n\n\n<li><code>-ai<\/code> \u548c <code>-o<\/code> \u662f\u53ef\u9009\u53c2\u6570<\/li>\n\n\n\n<li><code>-all<\/code> \u5c06\u901a\u8fc7 OpenAI \u5206\u6790\u8fd0\u884c\u6240\u6709\u529f\u80fd\uff0c\u65e0\u8bba Semgrep \u7684\u4efb\u4f55\u53d1\u73b0\u5982\u4f55\u3002\u6b64\u6807\u5fd7\u9700\u8981\u5148\u51b3\u6761\u4ef6 <code>-ai<\/code> \u6807\u5fd7<\/li>\n\n\n\n<li>\u4f8b\u5982 <code>python callisto.py -b vulnProgram.exe -ai -o results.txt<\/code><\/li>\n\n\n\n<li>\u4f8b\u5982\uff08\u901a\u8fc7 AI \u5206\u6790\u8fd0\u884c\u6240\u6709\u529f\u80fd\uff09\uff1a<br><code>python callisto.py -b vulnProgram.exe -ai -all -o results.txt<\/code><\/li>\n<\/ul>\n\n\n\n<p><strong>\u7a0b\u5e8f\u8f93\u51fa\u793a\u4f8b\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"241\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/09\/\u56fe\u7247-16.png\" alt=\"\" class=\"wp-image-1885\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/09\/\u56fe\u7247-16.png 640w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/09\/\u56fe\u7247-16-300x113.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/github.com\/JetP1ane\/Callisto\">JetP1ane\/Callisto: Callisto &#8211; An Intelligent Binary Vulnerability Analysis Tool (github.com)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Callisto\u662f\u4e00\u4e2a\u667a\u80fd\u7684\u81ea\u52a8\u4e8c\u8fdb\u5236\u6f0f\u6d1e\u5206\u6790\u5de5\u5177\u3002\u5176\u76ee\u7684\u662f\u81ea\u4e3b\u53cd\u7f16\u8bd1\u63d0\u4f9b\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5e76\u904d\u5386\u4f2a\u4ee3\u7801\u8f93\u51fa\uff0c\u4ee5\u67e5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[313,118,289,342,86,103,312,90,43,17],"tags":[242,314],"class_list":["post-1883","post","type-post","status-publish","format-standard","hentry","category-chatgpt","category-github","category-gpt","category-idapro","category-kali","category-linux-infoarticle","category-openai","category-reverse-engineering-malware","category-infoarticle","category-infonews","tag-chatgpt","tag-openai-api"],"views":2362,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1883"}],"version-history":[{"count":4,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1883\/revisions"}],"predecessor-version":[{"id":1889,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1883\/revisions\/1889"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}