{"id":10456,"date":"2026-11-20T23:49:24","date_gmt":"2026-11-20T23:49:24","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=10456"},"modified":"2026-11-20T23:49:24","modified_gmt":"2026-11-20T23:49:24","slug":"anti-ai-tricks-part-2","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2026\/11\/20\/anti-ai-tricks-part-2\/","title":{"rendered":"Anti-AI tricks, Part 2"},"content":{"rendered":"\n<p>Today I tried to see if AI can &#8216;understand&#8217; .TLS callbacks. These are almost obsolete now, but back in a day they were used heavily for various anti-reversing and even anti-rootkits tricks. The idea is simple: since .tls callbacks execute before the &#8216;main&#8217;, we can use them to run some code that may mislead\/misdirect the analysis&#8230;<\/p>\n\n\n\n<p>So, I wrote a simple test assembly program that included one .tls callback routine. When that callback is executed, the program shows a message box. The routine then increments a value of a global counter that is initiated with 0. When the main routine of a program is executed, it checks if the value of that global counter is 0; if it is, it shows a different message box, otherwise &#8211; it just exits.<\/p>\n\n\n\n<p>When I submitted the sample to Claude and ChatGPT neither of them were fooled and they both, and almost instantly reported that the message shown by the program is the one provided by the .tls callback&#8230;<\/p>\n\n\n\n<p>Ouch. <\/p>\n\n\n\n<p>Looks like old file format tricks are not gonna cut it in this series&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I tried to see if AI can &#8216;understand&#8217; .TLS callbacks. These are almost obsolete now, but back in a day they were used heavily for various anti-reversing and even anti-rootkits tricks. The idea is simple: since .tls callbacks execute &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2026\/11\/20\/anti-ai-tricks-part-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[43],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10456"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=10456"}],"version-history":[{"count":1,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10456\/revisions"}],"predecessor-version":[{"id":10457,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10456\/revisions\/10457"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=10456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=10456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=10456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}