Close Menu
  • Home
  • AI Models
    • DeepSeek
    • xAI
    • OpenAI
    • Meta AI Llama
    • Google DeepMind
    • Amazon AWS AI
    • Microsoft AI
    • Anthropic (Claude)
    • NVIDIA AI
    • IBM WatsonX Granite 3.1
    • Adobe Sensi
    • Hugging Face
    • Alibaba Cloud (Qwen)
    • Baidu (ERNIE)
    • C3 AI
    • DataRobot
    • Mistral AI
    • Moonshot AI (Kimi)
    • Google Gemma
    • xAI
    • Stability AI
    • H20.ai
  • AI Research
    • Allen Institue for AI
    • arXiv AI
    • Berkeley AI Research
    • CMU AI
    • Google Research
    • Microsoft Research
    • Meta AI Research
    • OpenAI Research
    • Stanford HAI
    • MIT CSAIL
    • Harvard AI
  • AI Funding & Startups
    • AI Funding Database
    • CBInsights AI
    • Crunchbase AI
    • Data Robot Blog
    • TechCrunch AI
    • VentureBeat AI
    • The Information AI
    • Sifted AI
    • WIRED AI
    • Fortune AI
    • PitchBook
    • TechRepublic
    • SiliconANGLE – Big Data
    • MIT News
    • Data Robot Blog
  • Expert Insights & Videos
    • Google DeepMind
    • Lex Fridman
    • Matt Wolfe AI
    • Yannic Kilcher
    • Two Minute Papers
    • AI Explained
    • TheAIEdge
    • Matt Wolfe AI
    • The TechLead
    • Andrew Ng
    • OpenAI
  • Expert Blogs
    • François Chollet
    • Gary Marcus
    • IBM
    • Jack Clark
    • Jeremy Howard
    • Melanie Mitchell
    • Andrew Ng
    • Andrej Karpathy
    • Sebastian Ruder
    • Rachel Thomas
    • IBM
  • AI Policy & Ethics
    • ACLU AI
    • AI Now Institute
    • Center for AI Safety
    • EFF AI
    • European Commission AI
    • Partnership on AI
    • Stanford HAI Policy
    • Mozilla Foundation AI
    • Future of Life Institute
    • Center for AI Safety
    • World Economic Forum AI
  • AI Tools & Product Releases
    • AI Assistants
    • AI for Recruitment
    • AI Search
    • Coding Assistants
    • Customer Service AI
    • Image Generation
    • Video Generation
    • Writing Tools
    • AI for Recruitment
    • Voice/Audio Generation
  • Industry Applications
    • Finance AI
    • Healthcare AI
    • Legal AI
    • Manufacturing AI
    • Media & Entertainment
    • Transportation AI
    • Education AI
    • Retail AI
    • Agriculture AI
    • Energy AI
  • AI Art & Entertainment
    • AI Art News Blog
    • Artvy Blog » AI Art Blog
    • Weird Wonderful AI Art Blog
    • The Chainsaw » AI Art
    • Artvy Blog » AI Art Blog
What's Hot

Microsoft Edge is now an AI browser with launch of ‘Copilot Mode’

How Work is Getting Done in Business

Trump caving on Nvidia H20 export curbs may disrupt his bigger trade war

Facebook X (Twitter) Instagram
Advanced AI News
  • Home
  • AI Models
    • OpenAI (GPT-4 / GPT-4o)
    • Anthropic (Claude 3)
    • Google DeepMind (Gemini)
    • Meta (LLaMA)
    • Cohere (Command R)
    • Amazon (Titan)
    • IBM (Watsonx)
    • Inflection AI (Pi)
  • AI Research
    • Allen Institue for AI
    • arXiv AI
    • Berkeley AI Research
    • CMU AI
    • Google Research
    • Meta AI Research
    • Microsoft Research
    • OpenAI Research
    • Stanford HAI
    • MIT CSAIL
    • Harvard AI
  • AI Funding
    • AI Funding Database
    • CBInsights AI
    • Crunchbase AI
    • Data Robot Blog
    • TechCrunch AI
    • VentureBeat AI
    • The Information AI
    • Sifted AI
    • WIRED AI
    • Fortune AI
    • PitchBook
    • TechRepublic
    • SiliconANGLE – Big Data
    • MIT News
    • Data Robot Blog
  • AI Experts
    • Google DeepMind
    • Lex Fridman
    • Meta AI Llama
    • Yannic Kilcher
    • Two Minute Papers
    • AI Explained
    • TheAIEdge
    • The TechLead
    • Matt Wolfe AI
    • Andrew Ng
    • OpenAI
    • Expert Blogs
      • François Chollet
      • Gary Marcus
      • IBM
      • Jack Clark
      • Jeremy Howard
      • Melanie Mitchell
      • Andrew Ng
      • Andrej Karpathy
      • Sebastian Ruder
      • Rachel Thomas
      • IBM
  • AI Tools
    • AI Assistants
    • AI for Recruitment
    • AI Search
    • Coding Assistants
    • Customer Service AI
  • AI Policy
    • ACLU AI
    • AI Now Institute
    • Center for AI Safety
  • Industry AI
    • Finance AI
    • Healthcare AI
    • Education AI
    • Energy AI
    • Legal AI
LinkedIn Instagram YouTube Threads X (Twitter)
Advanced AI News
IBM

Identifying and abusing Azure Arc for hybrid escalation and persistence

By Advanced AI EditorJuly 3, 2025No Comments4 Mins Read
Share Facebook Twitter Pinterest Copy Link Telegram LinkedIn Tumblr Email
Share
Facebook Twitter LinkedIn Pinterest Email


If you find your CSE in this “Creating, but not actually running” state, the best approach is to delete it entirely (if you’re sure the process you executed with it is no longer running), which can be accomplished with the following command:

az resource delete –ids “/subscriptions/[subscription]/resourceGroups/[resource group]/providers/Microsoft.HybridCompute/machines/[computer name]/extensions/[CSE Name]”

Attempting to delete a CSE when the underlying executable is still running (e.g., an https beacon running as NT_AUTHORITY\SYSTEM that can’t egress due to proxy controls) will not cause the process to exit, nor will it cause the CSE to delete itself. Instead, it can result in the CSE extension getting stuck in a Deleting state indefinitely, with the only full remediation I identified being to delete the Hybrid Identity parent object from Azure, uninstall the Arc client from the managed system and reinstall everything. It sounds scary, but once I figured this out, it was like a five-minute process to get everything up and running again.

One other thing to keep in mind regarding deleting CSEs: the deletion process removes the C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension folder from the disk of the client system, wiping any files you may have uploaded or modified in that structure. Furthermore, it does take three to five minutes to process the CSE delete command in Azure; this is normal.

One of the interesting things that a CSE can do in addition to executing commands is downloading files from the Internet. An array of files can be specified under the settings arg in the fileUris attrib, which allows for the download of files to the C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\[version]\Downloads\[iterator] folder. This folder structure persists until the CSE is deleted within Azure, at which point everything related to the CSE extension is deleted from disk. This means that you could create a script that would copy files out of this folder to elsewhere on disk, allowing for a mechanism for smuggling files that doesn’t rely on a traditional web download cradle. As these files persist once they are moved outside of the default directory, they could be copied and then run with a subsequent CSE from elsewhere on disk, breaking a static detection dependent on identifying executions from the previously noted CSE downloads folder.

When creating more advanced logic like this, which may or may not succeed, it is also helpful to be able to retrieve output that indicates if an execution was successful or not. While we’re not able to directly recover output from CSE executions, exit codes are returned, meaning that we can include conditional branching in our code that exits with a specific code based on the current state of the program (e.g., successful file copy). Putting these pieces together, let’s stage a super contrived demo that does the following:

Downloads two files via the fileUris parameter from a web server titled notVirus.exe and alsoNotVirus.txt. In this instance, I’ll use a local web server with a hostname of legitServer. As this will be handled via fileUris, we don’t need to explicitly code this into our PowerShell script.The PowerShell script should copy the downloaded files to C:\Windows\TempFinally, the script exits with an exit code of 10 on successful download + copy, and a code of 20 on a failure

A simple PowerShell script that accomplishes these things would look something like:

try

{

    Copy-Item -Path “NotVirus.exe” -Destination “C:\Windows\Temp\NotVirus.exe” -Force –

ErrorAction Stop

    Copy-Item -Path “AlsoNotVirus.txt” -Destination “C:\Windows\Temp\AlsoNotVirus.txt” –

Force -ErrorAction Stop

if ((Test-Path “C:\Windows\Temp\NotVirus.exe”) -and (Test-Path

“C:\Windows\Temp\AlsoNotVirus.txt”))

    {

        exit 10

    }

    else

    {

        exit 20

    }

}

catch

{

    exit 20

}



Source link

Follow on Google News Follow on Flipboard
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
Previous ArticleThinking About Thinking: SAGE-nano's Inverse Reasoning for Self-Aware Language Models
Next Article OpenAI condemns Robinhood’s ‘OpenAI tokens’
Advanced AI Editor
  • Website

Related Posts

IBM Exceeds Q2 2025 Expectations with Strong Growth

July 24, 2025

IBM Bargain Hunters Look to Capitalize on Post-Earnings Stock Dip

July 24, 2025

Why IBM Stock Is Plummeting Today

July 24, 2025

Comments are closed.

Latest Posts

Picasso’s ‘Demoiselles’ May Not Have Been Inspired by African Art

Catalan National Assembly protested the restitution of murals to Aragon.

Scottish Museum Group Warns of ‘Policing of Gender’—and More Art News

David Geffen Sued By Estranged Husband for Breach of Contract

Latest Posts

Microsoft Edge is now an AI browser with launch of ‘Copilot Mode’

July 28, 2025

How Work is Getting Done in Business

July 28, 2025

Trump caving on Nvidia H20 export curbs may disrupt his bigger trade war

July 28, 2025

Subscribe to News

Subscribe to our newsletter and never miss our latest news

Subscribe my Newsletter for New Posts & tips Let's stay updated!

Recent Posts

  • Microsoft Edge is now an AI browser with launch of ‘Copilot Mode’
  • How Work is Getting Done in Business
  • Trump caving on Nvidia H20 export curbs may disrupt his bigger trade war
  • Canada’s leading tech startup Cohere strikes alliance with BCE to sell AI tools
  • LLNL and Partners Propose Data-Driven Approach to Bridge AI and Computational Science Models

Recent Comments

  1. 🖨 🔵 Incoming Message: 1.95 Bitcoin from exchange. Claim transfer => https://graph.org/ACTIVATE-BTC-TRANSFER-07-23?hs=40f06aae45d2dc14b01045540f836756& 🖨 on SFC Dialogue丨Jeffrey Sachs says he uses DeepSeek every hour_to_facts_its
  2. 📪 ✉️ Unread Notification: 1.65 BTC from user. Claim transfer >> https://graph.org/ACTIVATE-BTC-TRANSFER-07-23?hs=63f0a8159ef8316c31f5a9a8aca50f39& 📪 on Sean Carroll: Arrow of Time
  3. 🔋 📬 Unread Alert - 1.65 BTC from exchange. Accept funds > https://graph.org/ACTIVATE-BTC-TRANSFER-07-23?hs=db3ef91843302da628b83636ef7db949& 🔋 on Rohit Prasad: Amazon Alexa and Conversational AI | Lex Fridman Podcast #57
  4. 📟 ✉️ New Alert: 1.95 Bitcoin from partner. Review funds => https://graph.org/ACTIVATE-BTC-TRANSFER-07-23?hs=945d7d4685640a791a641ab7baaf111d& 📟 on OpenAI’s $3 Billion Windsurf Acquisition Changes AI Forever
  5. 📉 📬 New Alert: 1.95 BTC from user. Accept transfer > https://graph.org/ACTIVATE-BTC-TRANSFER-07-23?hs=ec44c54ac11760a830a6e2539d842264& 📉 on OpenAI Pushes Back Against Court’s Data Retention Order

Welcome to Advanced AI News—your ultimate destination for the latest advancements, insights, and breakthroughs in artificial intelligence.

At Advanced AI News, we are passionate about keeping you informed on the cutting edge of AI technology, from groundbreaking research to emerging startups, expert insights, and real-world applications. Our mission is to deliver high-quality, up-to-date, and insightful content that empowers AI enthusiasts, professionals, and businesses to stay ahead in this fast-evolving field.

Subscribe to Updates

Subscribe to our newsletter and never miss our latest news

Subscribe my Newsletter for New Posts & tips Let's stay updated!

LinkedIn Instagram YouTube Threads X (Twitter)
  • Home
  • About Us
  • Advertise With Us
  • Contact Us
  • DMCA
  • Privacy Policy
  • Terms & Conditions
© 2025 advancedainews. Designed by advancedainews.

Type above and press Enter to search. Press Esc to cancel.