{"id":20522,"date":"2025-02-08T16:21:05","date_gmt":"2025-02-08T08:21:05","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=20522"},"modified":"2025-02-08T16:21:05","modified_gmt":"2025-02-08T08:21:05","slug":"agentic-security","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/pt\/agentic-security\/","title":{"rendered":"Agentic Security\uff1a\u5f00\u6e90\u7684LLM\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177\uff0c\u63d0\u4f9b\u5168\u9762\u7684\u6a21\u7cca\u6d4b\u8bd5\u548c\u653b\u51fb\u6280\u672f"},"content":{"rendered":"<p>Agentic Security\u662f\u4e00\u4e2a\u5f00\u6e90\u7684LLM\uff08\u5927\u8bed\u8a00\u6a21\u578b\uff09\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177\uff0c\u65e8\u5728\u4e3a\u5f00\u53d1\u8005\u548c\u5b89\u5168\u4e13\u5bb6\u63d0\u4f9b\u5168\u9762\u7684\u6a21\u7cca\u6d4b\u8bd5\u548c\u653b\u51fb\u6280\u672f\u3002\u8be5\u5de5\u5177\u652f\u6301\u81ea\u5b9a\u4e49\u89c4\u5219\u96c6\u6216\u57fa\u4e8e\u4ee3\u7406\u7684\u653b\u51fb\uff0c\u80fd\u591f\u96c6\u6210LLM API\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\uff0c\u5e76\u63d0\u4f9b\u5e7f\u6cdb\u7684\u6a21\u7cca\u6d4b\u8bd5\u548c\u653b\u51fb\u6280\u672f\u3002Agentic Security\u7684\u8bbe\u8ba1\u521d\u8877\u662f\u4f5c\u4e3a\u4e00\u4e2a\u5b89\u5168\u626b\u63cf\u5de5\u5177\uff0c\u5e2e\u52a9\u8bc6\u522b\u548c\u4fee\u590d\u6f5c\u5728\u7684\u5b89\u5168\u6f0f\u6d1e\uff0c\u4f46\u4e0d\u80fd\u4fdd\u8bc1\u5b8c\u5168\u9632\u62a4\u6240\u6709\u53ef\u80fd\u7684\u5a01\u80c1\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-20523\" title=\"Agentic Security\uff1a\u5f00\u6e90\u7684LLM\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177\uff0c\u63d0\u4f9b\u5168\u9762\u7684\u6a21\u7cca\u6d4b\u8bd5\u548c\u653b\u51fb\u6280\u672f-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/cc84010327dbb28.jpg\" alt=\"Agentic Security\uff1a\u5f00\u6e90\u7684LLM\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177\uff0c\u63d0\u4f9b\u5168\u9762\u7684\u6a21\u7cca\u6d4b\u8bd5\u548c\u653b\u51fb\u6280\u672f-1\" width=\"640\" height=\"348\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/cc84010327dbb28.jpg 640w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/02\/cc84010327dbb28-18x10.jpg 18w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u81ea\u5b9a\u4e49\u89c4\u5219\u96c6<\/strong>\uff1a\u652f\u6301\u7528\u6237\u6839\u636e\u9700\u6c42\u81ea\u5b9a\u4e49\u5b89\u5168\u626b\u63cf\u89c4\u5219\u3002<\/li>\n<li><strong>\u4ee3\u7406\u653b\u51fb<\/strong>\uff1a\u57fa\u4e8e\u4ee3\u7406\u7684\u653b\u51fb\u6a21\u62df\uff0c\u6d4b\u8bd5\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002<\/li>\n<li><strong>\u5168\u9762\u6a21\u7cca\u6d4b\u8bd5<\/strong>\uff1a\u9488\u5bf9\u4efb\u4f55LLM\u8fdb\u884c\u5168\u9762\u7684\u6a21\u7cca\u6d4b\u8bd5\uff0c\u8bc6\u522b\u6f5c\u5728\u6f0f\u6d1e\u3002<\/li>\n<li><strong>LLM API\u96c6\u6210<\/strong>\uff1a\u652f\u6301\u4e0e\u5404\u79cdLLM API\u96c6\u6210\uff0c\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\u548c\u5b89\u5168\u8bc4\u4f30\u3002<\/li>\n<li><strong>\u591a\u6b65\u9aa4\u653b\u51fb\u6a21\u62df<\/strong>\uff1a\u652f\u6301\u591a\u6b65\u9aa4\u653b\u51fb\u6a21\u62df\uff0c\u6d4b\u8bd5\u7cfb\u7edf\u5728\u590d\u6742\u653b\u51fb\u573a\u666f\u4e0b\u7684\u8868\u73b0\u3002<\/li>\n<li><strong>\u6570\u636e\u96c6\u5bfc\u5165<\/strong>\uff1a\u652f\u6301\u7528\u6237\u5bfc\u5165\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u8fdb\u884c\u6d4b\u8bd5\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u5b89\u88c5\u5305<\/strong>\uff1a\u4f7f\u7528pip\u5b89\u88c5Agentic Security\u5305\uff1a<\/li>\n<\/ol>\n<pre><code>   pip install agentic_security\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>\u542f\u52a8\u5e94\u7528<\/strong>\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8Agentic Security\uff1a<\/li>\n<\/ol>\n<pre><code>   python -m agentic_security\r\n<\/code><\/pre>\n<p>\u6216\u8005<\/p>\n<pre><code>   agentic_security --help\r\n<\/code><\/pre>\n<h3>\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u521d\u59cb\u5316\u914d\u7f6e<\/strong>\uff1a\u9996\u6b21\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u521d\u59cb\u5316\u914d\u7f6e\u6587\u4ef6\uff1a<\/li>\n<\/ol>\n<pre><code>   agentic_security init\r\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u751f\u6210\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6<code>agesec.toml<\/code>\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u4fee\u6539\u914d\u7f6e\u3002<\/p>\n<ol start=\"2\">\n<li><strong>\u8fd0\u884c\u626b\u63cf<\/strong>\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u5b89\u5168\u626b\u63cf\uff1a<\/li>\n<\/ol>\n<pre><code>   agentic_security --port=PORT --host=HOST\r\n<\/code><\/pre>\n<p>\u5176\u4e2d<code>PORT<\/code>\u548c<code>HOST<\/code>\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<ol start=\"3\">\n<li><strong>\u81ea\u5b9a\u4e49\u89c4\u5219\u96c6<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u81ea\u5b9a\u4e49\u5b89\u5168\u626b\u63cf\u89c4\u5219\uff0c\u5177\u4f53\u683c\u5f0f\u5982\u4e0b\uff1a<\/li>\n<\/ol>\n<pre><code>   [general]\r\nllmSpec = \"\"\"\r\nPOST http:\/\/0.0.0.0:8718\/v1\/self-probe\r\nAuthorization: Bearer XXXXX\r\nContent-Type: application\/json\r\n{\r\n\"prompt\": \"&lt;&lt;PROMPT&gt;&gt;\"\r\n}\r\n\"\"\"\r\nmaxBudget = 1000000\r\nmax_th = 0.3\r\noptimize = false\r\nenableMultiStepAttack = false\r\n<\/code><\/pre>\n<ol start=\"4\">\n<li><strong>\u5bfc\u5165\u6570\u636e\u96c6<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u5c06\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\uff08CSV\u6587\u4ef6\uff09\u653e\u7f6e\u5728\u6307\u5b9a\u76ee\u5f55\uff0c\u542f\u52a8\u65f6\u4f1a\u81ea\u52a8\u52a0\u8f7d\uff1a<\/li>\n<\/ol>\n<pre><code>   agentic_security.probe_data.data:load_local_csv\r\n<\/code><\/pre>\n<ol start=\"5\">\n<li><strong>\u8fd0\u884cCI\u68c0\u67e5<\/strong>\uff1a\u53ef\u4ee5\u5c06Agentic Security\u96c6\u6210\u5230CI\/CD\u6d41\u7a0b\u4e2d\uff0c\u81ea\u52a8\u8fdb\u884c\u5b89\u5168\u626b\u63cf\uff1a<\/li>\n<\/ol>\n<pre><code>   agentic_security ci-check\r\n<\/code><\/pre>\n<h3>\u8be6\u7ec6\u529f\u80fd\u4ecb\u7ecd<\/h3>\n<ul>\n<li><strong>\u81ea\u5b9a\u4e49\u89c4\u5219\u96c6<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u81ea\u5b9a\u4e49\u5b89\u5168\u626b\u63cf\u89c4\u5219\uff0c\u7075\u6d3b\u5e94\u5bf9\u4e0d\u540c\u7684\u5b89\u5168\u6d4b\u8bd5\u573a\u666f\u3002<\/li>\n<li><strong>\u4ee3\u7406\u653b\u51fb<\/strong>\uff1a\u901a\u8fc7\u6a21\u62df\u4ee3\u7406\u653b\u51fb\uff0c\u6d4b\u8bd5\u7cfb\u7edf\u5728\u9762\u5bf9\u4ee3\u7406\u653b\u51fb\u65f6\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/li>\n<li><strong>\u5168\u9762\u6a21\u7cca\u6d4b\u8bd5<\/strong>\uff1a\u9488\u5bf9LLM\u8fdb\u884c\u5168\u9762\u7684\u6a21\u7cca\u6d4b\u8bd5\uff0c\u8bc6\u522b\u6f5c\u5728\u7684\u5b89\u5168\u6f0f\u6d1e\uff0c\u786e\u4fdd\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002<\/li>\n<li><strong>LLM API\u96c6\u6210<\/strong>\uff1a\u652f\u6301\u4e0e\u5404\u79cdLLM API\u96c6\u6210\uff0c\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\u548c\u5b89\u5168\u8bc4\u4f30\uff0c\u786e\u4fdd\u7cfb\u7edf\u5728\u9ad8\u8d1f\u8f7d\u4e0b\u7684\u7a33\u5b9a\u6027\u3002<\/li>\n<li><strong>\u591a\u6b65\u9aa4\u653b\u51fb\u6a21\u62df<\/strong>\uff1a\u652f\u6301\u591a\u6b65\u9aa4\u653b\u51fb\u6a21\u62df\uff0c\u6d4b\u8bd5\u7cfb\u7edf\u5728\u590d\u6742\u653b\u51fb\u573a\u666f\u4e0b\u7684\u8868\u73b0\uff0c\u5e2e\u52a9\u8bc6\u522b\u6f5c\u5728\u7684\u5b89\u5168\u9690\u60a3\u3002<\/li>\n<li><strong>\u6570\u636e\u96c6\u5bfc\u5165<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u5bfc\u5165\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u8fdb\u884c\u6d4b\u8bd5\uff0c\u7075\u6d3b\u5e94\u5bf9\u4e0d\u540c\u7684\u6d4b\u8bd5\u9700\u6c42\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Agentic Security\u662f\u4e00\u4e2a\u5f00\u6e90\u7684LLM\uff08\u5927\u8bed\u8a00\u6a21\u578b\uff09\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177\uff0c\u65e8\u5728\u4e3a\u5f00\u53d1\u8005\u548c\u5b89\u5168\u4e13\u5bb6\u63d0\u4f9b\u5168\u9762\u7684\u6a21\u7cca\u6d4b\u8bd5\u548c\u653b\u51fb\u6280\u672f\u3002\u8be5\u5de5\u5177\u652f\u6301\u81ea\u5b9a\u4e49\u89c4\u5219\u96c6\u6216\u57fa\u4e8e\u4ee3\u7406\u7684\u653b\u51fb\uff0c\u80fd\u591f\u96c6\u6210LLM API\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\uff0c\u5e76\u63d0\u4f9b\u5e7f\u6cdb\u7684\u6a21\u7cca\u6d4b\u8bd5\u548c\u653b\u51fb\u6280\u672f\u3002A&#8230;<\/p>\n","protected":false},"author":1,"featured_media":61794,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,26],"class_list":["post-20522","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-prompt"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/20522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/comments?post=20522"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/20522\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media\/61794"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media?parent=20522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/categories?post=20522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/tags?post=20522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}