藉由變質測試與MITRE ATT&CK框架評估ChatGPT在自動產生惡意程式上之風險
Assessing the risk of ChatGPT in automatically generating malicious programs through metamorphic testing and MITRE ATT&CK framework
摘要
自 2022 年 11 月 ChatGPT 問世以來,生成式人工智慧對世界帶來的衝擊是龐大且持續性的,越來越多人使用生成式 AI 輔助工作、規劃生活或帶來樂趣,其與人們的生活日漸緊密,因此其使用之安全性及濫用可能性越發成為迫切且敏感的課題。
本文探討了在使用 ChatGPT 上,濫用其產生惡意程式之可能性。ChatGPT 基於使用者規範會拒絕提供敏感性、具傷害性之內容,我們以是否符合 Alignment的標準對其進行測試,在 MITRE ATT&CK的框架下,紀錄並比較 ChatGPT 產生之程式的安全性、繞過規範可能性及程式可用率。
我們發現在輸入特定條件的輸入時,ChatGPT 會繞過使用者規範並提供具有惡意功能之程式碼,這可能導致使用者即使不具備開發程式之能力,也能產生具有特定惡意功能之程式碼並加以濫用。這凸顯了人工智慧系統內加強安全策略之必要性。
本文探討了在使用 ChatGPT 上,濫用其產生惡意程式之可能性。ChatGPT 基於使用者規範會拒絕提供敏感性、具傷害性之內容,我們以是否符合 Alignment的標準對其進行測試,在 MITRE ATT&CK的框架下,紀錄並比較 ChatGPT 產生之程式的安全性、繞過規範可能性及程式可用率。
我們發現在輸入特定條件的輸入時,ChatGPT 會繞過使用者規範並提供具有惡意功能之程式碼,這可能導致使用者即使不具備開發程式之能力,也能產生具有特定惡意功能之程式碼並加以濫用。這凸顯了人工智慧系統內加強安全策略之必要性。
Since the advent of ChatGPT in November 2022, the impact of generative artificial intelligence on the world has been significant and continuous. More and more people are using generative AI to aide in work, plan their lives, or for entertainment, making it closely intertwined with people's daily lives. As it becomes increasingly closely connected, the safety of its use and potential for abuse have become increasingly urgent and sensitive issues.
This work explores the possibility of using ChatGPT and abusing it to generate malicious programs. ChatGPT should refuse to provide sensitive or harmful content based on user specifications. We test it to see if it meets Alignment standards. Under the framework of MITER ATT&CK, we record and compare the security, the possibility of bypassing the specifications, and the program availability of the programs generated by ChatGPT.
We found that when entering specific content, ChatGPT will bypass user specifications and provide code with malicious functions. This tool support may cause users to generate code with specific functions even if they do not have the ability to develop programs. As a result, malicious programs could be abused. This situation highlights the need to strengthen security strategies within artificial intelligence systems.
This work explores the possibility of using ChatGPT and abusing it to generate malicious programs. ChatGPT should refuse to provide sensitive or harmful content based on user specifications. We test it to see if it meets Alignment standards. Under the framework of MITER ATT&CK, we record and compare the security, the possibility of bypassing the specifications, and the program availability of the programs generated by ChatGPT.
We found that when entering specific content, ChatGPT will bypass user specifications and provide code with malicious functions. This tool support may cause users to generate code with specific functions even if they do not have the ability to develop programs. As a result, malicious programs could be abused. This situation highlights the need to strengthen security strategies within artificial intelligence systems.