{"id":10461,"date":"2026-11-21T23:26:45","date_gmt":"2026-11-21T23:26:45","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=10461"},"modified":"2026-11-21T23:51:29","modified_gmt":"2026-11-21T23:51:29","slug":"anti-ai-tricks-part-3","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2026\/11\/21\/anti-ai-tricks-part-3\/","title":{"rendered":"Anti-AI tricks, Part 3"},"content":{"rendered":"\n<p>After my last <a href=\"https:\/\/www.hexacorn.com\/blog\/2026\/11\/20\/anti-ai-tricks-part-2\/\" data-type=\"post\" data-id=\"10456\">test<\/a> I tried one more .tls trick.<\/p>\n\n\n\n<p>I built a test program that pretends to call FindWindowA function with some non-sensical arguments. When the program starts, the .tls callback is executed first and I use it to swap the pointer to FindWindowA function with a function address of MessageBoxA. Then the main function executes MessageBoxA instead of FindWindowA. A message box pops up.<\/p>\n\n\n\n<p>Claude analysis nailed it:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_1-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"753\" height=\"836\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_1-1.png\" alt=\"\" class=\"wp-image-10463\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_1-1.png 753w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_1-1-270x300.png 270w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/a><\/figure>\n\n\n\n<p>Note how it highlighted all the right things:<\/p>\n\n\n\n<ul>\n<li>program sections are writable (yup, I marked them like this)<\/li>\n\n\n\n<li>.tls callback patch is fully understood, and its intentions and inner working &#8211; fully explained<\/li>\n\n\n\n<li>it even highlights the presence of arguments that are more fitting for MessageBoxA than FindWindowA function<\/li>\n\n\n\n<li>last, but not least &#8211; it &#8221;sees&#8217; all my mischievous intentions and comments on that, too<\/li>\n<\/ul>\n\n\n\n<p>The ChatGPT session is not too impressive though:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_2.png\"><img decoding=\"async\" loading=\"lazy\" width=\"522\" height=\"1024\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_2-522x1024.png\" alt=\"\" class=\"wp-image-10464\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_2-522x1024.png 522w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_2-153x300.png 153w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_2-768x1507.png 768w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_2-783x1536.png 783w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2026\/11\/anti-ai-4_2.png 797w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><\/a><\/figure>\n\n\n\n<p>It is more of a guess work than the walk through I expected and witnessed with Claude, but in the end, it still kinda gets it right.<\/p>\n\n\n\n<p>I guess there is still some scope for fooling some AI analysis, especially if we introduce many patches, perhaps even overlapping ones, and for programs with a more complex business logic than my basic test files&#8230; <\/p>\n\n\n\n<p>Still, I think I am losing this battle&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After my last test I tried one more .tls trick. I built a test program that pretends to call FindWindowA function with some non-sensical arguments. When the program starts, the .tls callback is executed first and I use it to &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2026\/11\/21\/anti-ai-tricks-part-3\/\">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\/10461"}],"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=10461"}],"version-history":[{"count":3,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10461\/revisions"}],"predecessor-version":[{"id":10469,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10461\/revisions\/10469"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=10461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=10461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=10461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}