{"id":5348,"date":"2025-07-15T03:00:52","date_gmt":"2025-07-15T03:00:52","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/07\/15\/doge-denizen-marko-elez-leaked-api-key-for-xai\/"},"modified":"2025-07-15T03:00:52","modified_gmt":"2025-07-15T03:00:52","slug":"doge-denizen-marko-elez-leaked-api-key-for-xai","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/07\/15\/doge-denizen-marko-elez-leaked-api-key-for-xai\/","title":{"rendered":"DOGE Denizen Marko Elez Leaked API Key for xAI"},"content":{"rendered":"<p>    DOGE Denizen Marko Elez Leaked API Key for xAI<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p><strong>Marko Elez<\/strong>, a 25-year-old employee at Elon Musk\u2019s <strong>Department of Government Efficiency<\/strong> (DOGE), has been granted access to sensitive databases at the U.S. Social Security Administration, the Treasury and Justice departments, and the Department of Homeland Security. So it should fill all Americans with a deep sense of confidence to learn that Mr. Elez over the weekend inadvertently published a private key that allowed anyone to interact directly with more than four dozen large language models (LLMs) developed by Musk\u2019s artificial intelligence company <strong>xAI<\/strong>.<\/p>\n<div id=\"attachment_71170\" style=\"width: 756px\" class=\"wp-caption aligncenter\">\n<img data-recalc-dims=\"1\" loading=\"lazy\" aria-describedby=\"caption-attachment-71170\" decoding=\"async\" class=\" wp-image-71170\" src=\"https:\/\/i0.wp.com\/krebsonsecurity.com\/wp-content\/uploads\/2025\/05\/x-ai.png?resize=746%2C496&#038;ssl=1\" alt=\"\" width=\"746\" height=\"496\"><\/p>\n<p id=\"caption-attachment-71170\" class=\"wp-caption-text\">Image: Shutterstock, @sdx15.<\/p>\n<\/div>\n<p>On July 13, Mr. Elez committed a code script to GitHub called \u201cagent.py\u201d that included a private application programming interface (API) key for xAI. The inclusion of the private key was first flagged by <strong>GitGuardian<\/strong>, a company that specializes in detecting and remediating exposed secrets in public and proprietary environments. GitGuardian\u2019s systems constantly scan GitHub and other code repositories for exposed API keys, and fire off automated alerts to affected users.<\/p>\n<p><strong>Philippe Caturegli<\/strong>, \u201cchief hacking officer\u201d at the security consultancy <strong>Seralys,\u00a0<\/strong>said the exposed API key allowed access to at least 52 different LLMs used by xAI. The most recent LLM in the list was called \u201cgrok-4-0709\u201d and was created on July 9, 2025.<\/p>\n<p><strong>Grok<\/strong>, the <a href=\"https:\/\/x.ai\/grok\" target=\"_blank\" rel=\"noopener\">generative AI chatbot<\/a> developed by xAI and integrated into <strong>Twitter\/X<\/strong>, relies on these and other LLMs (a query to Grok before publication shows Grok currently uses Grok-3, which was launched in Feburary 2025). Earlier today, xAI <a href=\"https:\/\/x.com\/xai\/status\/1944776899420377134\" target=\"_blank\" rel=\"noopener\">announced<\/a> that the Department of Defense will begin using Grok as part of <a href=\"https:\/\/www.washingtonpost.com\/technology\/2025\/07\/14\/elon-musk-grok-defense-department\/\" target=\"_blank\" rel=\"noopener\">a contract worth up to $200 million<\/a>. The contract award came less than a week after Grok began <a href=\"https:\/\/www.npr.org\/2025\/07\/09\/nx-s1-5462609\/grok-elon-musk-antisemitic-racist-content\" target=\"_blank\" rel=\"noopener\">spewing antisemitic rants and invoking Adolf Hitler<\/a>.<\/p>\n<p>Mr. Elez did not respond to a request for comment. The code repository containing the private xAI key was removed shortly after Caturegli notified Elez via email. However, Caturegli said the exposed API key still works and has not yet been revoked.<\/p>\n<p>\u201cIf a developer can\u2019t keep an API key private, it raises questions about how they\u2019re handling far more sensitive government information behind closed doors,\u201d Caturegli told KrebsOnSecurity.<\/p>\n<p>Prior to joining DOGE, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Marko_Elez\" target=\"_blank\" rel=\"noopener\">Marko Elez<\/a> worked for a number of Musk\u2019s companies. His DOGE career began at the Department of the Treasury, and a legal battle over DOGE\u2019s access to Treasury databases showed Elez was sending unencrypted personal information <a href=\"https:\/\/www.theverge.com\/news\/630894\/doge-treasury-lawsuit-marko-elez-unencrypted-emails\" target=\"_blank\" rel=\"noopener\">in violation of the agency\u2019s policies<\/a>.<\/p>\n<p>While still at Treasury, Elez resigned after <strong>The Wall Street Journal<\/strong> <a href=\"https:\/\/www.wsj.com\/tech\/doge-staffer-resigns-over-racist-posts-d9f11a93\" target=\"_blank\" rel=\"noopener\">linked him to social media posts<\/a> that advocated racism and eugenics. When <strong>Vice President J.D. Vance<\/strong> lobbied for Elez to be rehired, <strong>President Trump<\/strong> agreed and Musk reinstated him.<\/p>\n<p>Since his re-hiring as a DOGE employee, Elez has been granted access to databases at one federal agency after another. <strong>TechCrunch<\/strong> <a href=\"https:\/\/techcrunch.com\/2025\/03\/17\/doge-staffer-violated-treasury-rules-by-emailing-unencrypted-personal-data\/\" target=\"_blank\" rel=\"noopener\">reported in February 2025<\/a> that he was working at the Social Security Administration. In March, <strong>Business Insider<\/strong> <a href=\"https:\/\/www.businessinsider.com\/doge-staffer-fertility-clinic-pronatalist-department-of-labor\" target=\"_blank\" rel=\"noopener\">found<\/a> Elez was part of a DOGE detachment <a href=\"https:\/\/krebsonsecurity.com\/2025\/04\/doge-workers-code-supports-nlrb-whistleblower\/\" target=\"_blank\" rel=\"noopener\">assigned to the Department of Labor<\/a>.<\/p>\n<div id=\"attachment_71106\" style=\"width: 548px\" class=\"wp-caption aligncenter\">\n<img data-recalc-dims=\"1\" aria-describedby=\"caption-attachment-71106\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-71106\" src=\"https:\/\/i0.wp.com\/krebsonsecurity.com\/wp-content\/uploads\/2025\/04\/markoelez.png?resize=538%2C624&#038;ssl=1\" alt=\"\" width=\"538\" height=\"624\"><\/p>\n<p id=\"caption-attachment-71106\" class=\"wp-caption-text\">Marko Elez, in a photo from a social media profile.<\/p>\n<\/div>\n<p>In April, <strong>The New York Times<\/strong> <a href=\"https:\/\/www.nytimes.com\/interactive\/2025\/02\/27\/us\/politics\/doge-staff-list.html\" target=\"_blank\" rel=\"noopener\">reported<\/a> that Elez held positions at the <strong>U.S. Customs and Border Protection<\/strong> and the <strong>Immigration and Customs Enforcement<\/strong> (ICE) bureaus, as well as the Department of Homeland Security. <strong>The Washington Post<\/strong> later <a href=\"https:\/\/www.washingtonpost.com\/immigration\/2025\/04\/21\/doge-ecas-justice-immigration-courts-trump\/\" target=\"_blank\" rel=\"noopener\">reported<\/a> that Elez, while serving as a DOGE advisor at the <strong>Department of Justice<\/strong>, had gained access to the Executive Office for Immigration Review\u2019s Courts and Appeals System (EACS).<\/p>\n<p>Elez is not the first DOGE worker to publish internal API keys for xAI: In May, KrebsOnSecurity <a href=\"https:\/\/krebsonsecurity.com\/2025\/05\/xai-dev-leaks-api-key-for-private-spacex-tesla-llms\/\" target=\"_blank\" rel=\"noopener\">detailed<\/a> how another DOGE employee leaked a private xAI key on GitHub for two months, exposing LLMs that were custom made for working with internal data from Musk\u2019s companies, including SpaceX, Tesla and Twitter\/X.<\/p>\n<p>Caturegli said it\u2019s difficult to trust someone with access to confidential government systems when they can\u2019t even manage the basics of operational security.<\/p>\n<p>\u201cOne leak is a mistake,\u201d he said. \u201cBut when the same type of sensitive key gets exposed again and again, it\u2019s not just bad luck, it\u2019s a sign of deeper negligence and a broken security culture.\u201d<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    BrianKrebs<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/krebsonsecurity.com\/2025\/07\/doge-denizen-marko-elez-leaked-api-key-for-xai\/\">Go to krebsonsecurity<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DOGE Denizen Marko Elez Leaked API Key for xAI Marko Elez, a 25-year-old employee at Elon Musk\u2019s Department of Government Efficiency (DOGE), has been granted access to sensitive databases at the U.S. Social Security Administration, the Treasury and Justice departments, and the Department of Homeland Security. So it should fill all Americans with a deep [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[188,1565,189,747,1217,899,565,55,1180,622,641,623,1566,207,964,1142,1038,769,1567,1568,1220],"tags":[72],"class_list":["post-5348","post","type-post","status-publish","format-standard","hentry","category-a-little-sunshine","category-business-insider","category-data-breaches","category-doge","category-gitguardian","category-github","category-grok","category-krebsonsecurity","category-marko-elez","category-philippe-caturegli","category-president-trump","category-seralys","category-techcrunch","category-the-coming-storm","category-the-new-york-times","category-the-wall-street-journal","category-the-washington-post","category-twitter","category-vice-president-j-d-vance","category-x","category-xai","tag-krebsonsecurity"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5348"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=5348"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5348\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=5348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=5348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=5348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}