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

$750 Target Stays as Analysts Expect AI Gaps to Close

A.I. May Be the Future, but First It Has to Study Ancient Roman History

OpenAI CEO Sam Altman issues big warning for ChatGPT users: Here are all the details – Technology News

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

Why IBM Stock Is Plummeting Today

July 24, 2025

The University of Chicago Partners with IBM to Strengthen Quantum Computing Startups in Illinois

July 24, 2025

IBM Q2 Earnings Smash Expectations — But Here’s Why the Stock Sank — TradingView News

July 24, 2025

Comments are closed.

Latest Posts

David Geffen Sued By Estranged Husband for Breach of Contract

Auction House Will Sell Egyptian Artifact Despite Concern From Experts

Anish Kapoor Lists New York Apartment for $17.75 M.

Street Fighter 6 Community Rocked by AI Art Controversy

Latest Posts

$750 Target Stays as Analysts Expect AI Gaps to Close

July 27, 2025

A.I. May Be the Future, but First It Has to Study Ancient Roman History

July 27, 2025

OpenAI CEO Sam Altman issues big warning for ChatGPT users: Here are all the details – Technology News

July 27, 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

  • $750 Target Stays as Analysts Expect AI Gaps to Close
  • A.I. May Be the Future, but First It Has to Study Ancient Roman History
  • OpenAI CEO Sam Altman issues big warning for ChatGPT users: Here are all the details – Technology News
  • This Indian With IIT, MIT Degree Could Have Received Rs 800 Crore Joining Bonus Ast Meta! – Trak.in
  • Beijing Is Using Soft Power to Gain Global Dominance

Recent Comments

  1. Rejestracja on Online Education – How I Make My Videos
  2. Anonymous on AI, CEOs, and the Wild West of Streaming
  3. MichaelWinty on Local gov’t reps say they look forward to working with Thomas
  4. 4rabet mirror on Former Tesla AI czar Andrej Karpathy coins ‘vibe coding’: Here’s what it means
  5. Janine Bethel on OpenAI research reveals that simply teaching AI a little ‘misinformation’ can turn it into an entirely unethical ‘out-of-the-way AI’

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.