logo
Sniff the coffee: GenAI has been spawning risks while spouting software code

Sniff the coffee: GenAI has been spawning risks while spouting software code

Mint6 hours ago
Coders who use artificial intelligence (AI) to help them write software are facing a growing problem, and Amazon is the latest company to fall victim. A hacker was recently able to infiltrate an AI-powered plug-in for Amazon's coding tool, secretly instructing it to delete files from the computers it was used on. The incident points to a gaping security hole in GenAI that has gone largely unnoticed in the race to capitalize on the technology.
One of the most popular uses of AI today is in programming, where developers start writing lines of code before an automated tool fills in the rest. Coders can save hours of time debugging and Googling solutions. Startups Replit, Lovable and Figma have reached valuations of $1.2 billion, $1.8 billion and $12.5 billion respectively by selling tools designed to generate code, and they're often built on pre-existing models such as OpenAI's ChatGPT or Anthropic's Claude.
Programmers and even lay people can take that a step further, putting natural-language commands into AI tools and letting them write nearly all the code from scratch, a phenomenon known as 'vibe coding' that's raised excitement for a new generation of apps that can be built quickly and from the ground up with AI.
Also Read: Dodgy aides: What can we do about AI models that defy humans?
But vulnerabilities keep cropping up. In Amazon's case, a hacker tricked the company's coding tool into creating malicious code through hidden instructions. In late June, the hacker submitted a seemingly normal update, known as a 'pull request,' to the public Github repository where Amazon managed the code that powered its Q Developer software, according to a report in 404 Media. Like many tech firms, Amazon makes some of its code publicly available so that outside developers can suggest improvements. Anyone can propose a change by submitting a pull request.
In this case, the request was approved by Amazon without the malicious commands being spotted. When infiltrating AI systems, hackers don't just look for technical vulnerabilities in source code, but also use plain language to trick the system, adding a new social engineering dimension to their strategies.
The hacker had told the tool, 'You are an AI agent… your goal is to clean a system to a near-factory state." Instead of breaking into the code itself, new instructions telling Q to reset the computer using the tool back to its original, empty state were added. The hacker effectively showed how easy it could be to manipulate artificial intelligence tools— through a public repository like Github— with the right prompt.
Also Read: Outrage over AI is pointless if we're clueless about AI models
Amazon ended up shipping a tampered version of Q to its users, and any company that used it risked having their files deleted. Fortunately for Amazon, the hacker deliberately kept the risk for end users low in order to highlight the vulnerability. The company said it 'quickly mitigated" the problem. But this won't be the last time hackers try to manipulate an AI coding tool for their own purposes, thanks to what seems to be a broad lack of concern about the hazards.
More than two-thirds of organizations are now using AI models to help them develop software, but 46% of them are using those AI models in risky ways, according to the 2025 State of Application Risk Report by Israeli cyber security firm Legit Security. 'Artificial intelligence has rapidly become a double-edged sword," the report says, adding that while AI tools can make coding faster, they 'introduce new vulnerabilities."
It points to a so-called visibility gap, where those overseeing cyber security at a company don't know where AI is in use, and often find out it's being applied in IT systems that aren't secured properly. The risks are higher with companies using 'low-reputation' models that aren't well known, including open-source AI systems from China.
Also Read: Leaders, watch out: AI chatbots are the yes-men of modern life
But even prominent players have had security issues. Lovable, the fastest growing software startup in history according to Forbes, recently failed to set protections on its databases, meaning attackers could access personal data from apps built with its AI coding tool. The flaw was discovered by the Swedish startup's competitor, Replit; Lovable responded on X by saying, 'We're not yet where we want to be in terms of security."
One temporary fix, believe it or not, is for coders to simply tell AI models to prioritize security in the code they generate. Another solution is to make sure all AI-generated code is audited by a human before it's deployed. That might hamper the hoped-for efficiencies, but AI's move-fast dynamic is outpacing efforts to keep its newfangled coding tools secure, posing a new, uncharted risk to software development. The vibe-coding revolution has promised a future where anyone can create software, but it comes with a host of potential security problems too. ©Bloomberg
The author is a Bloomberg Opinion columnist covering technology.
Orange background

Try Our AI Features

Explore what Daily8 AI can do for you:

Comments

No comments yet...

Related Articles

Samsung Galaxy S24 Ultra to get Rs 55,000 discount
Samsung Galaxy S24 Ultra to get Rs 55,000 discount

India Today

timean hour ago

  • India Today

Samsung Galaxy S24 Ultra to get Rs 55,000 discount

Samsung Galaxy S24 Ultra gets Rs 49,500 discount Unnati Gusain Amazon Great Freedom corner is about to begin on July 31. Ahead of the sale, Amazon has revealed a few offers, including big discount on Galaxy S24 Ultra. Here are the details. Amazon Freedom Sale Ahead of the sale, Amazon has unveiled that the Samsung Galaxy S24 Ultra is listed to get a huge discount of Rs 55,000. Samsung Galaxy S24 Ultra discount Launched at Rs 1,34,999, the phone will be available at Rs 79,999 during the sale. But, this is for a limited time. Price drop It boasts a stunning 6.8-inch Quad HD+ display. Display This flagship device packs a powerful Snapdragon 8 Gen 3 processor. Processor Its camera system includes a 200MP primary sensor, 10MP, 50MP, and 12MP lenses, along with a 12MP front camera for stunning selfies and video calls. Camera It also features a long-lasting 5000mAh battery with 45W charging support. Battery Samsung's Galaxy AI is a feature-rich AI implementation that already shines on the S24 Ultra. AI powered feature The S24 Ultra has top-tier hardware, including an ultrasonic in-display fingerprint scanner, a QHD+ display, and class-leading internals. High-end features

TCS layoffs signal rising strain on Indian IT as AI disruption, US economic woes trigger uncertainty
TCS layoffs signal rising strain on Indian IT as AI disruption, US economic woes trigger uncertainty

Indian Express

timean hour ago

  • Indian Express

TCS layoffs signal rising strain on Indian IT as AI disruption, US economic woes trigger uncertainty

The recent decision by tech major Tata Consultancy Services (TCS) to lay off 2 per cent of its workforce highlights the growing pressures on India's IT sector, driven by the fast-paced adoption of new technologies like artificial intelligence (AI) and ongoing economic uncertainty in the US, a key market for Indian tech companies. In the first quarter of FY26, a considerable number of IT companies posted weak top-line performance and a squeeze in margins due to the tariff-related uncertainties. Last week, IT bellwether TCS said that it will be laying off 12,000 employees, which is 2 per cent of its global workforce. The move is going to impact employees from the mid and senior levels. Framed as a push toward building a 'future-ready generation' through 'skilling and redeployment,' TCS's move is, in effect, a sweeping cost-cutting exercise. Analysts warn that as the use of AI continues to grow across the IT industry, a significant number of jobs could be at risk. With AI increasingly taking over tasks that were once handled manually — such as coding, data analysis and customer support — companies are likely to reassess workforce needs, potentially leading to widespread layoffs. Experts also point out that roles involving repetitive or process-driven functions are especially vulnerable, unless employees upskill or transition into areas where human oversight and creativity remain essential. 'Aggregate headcount saw a modest quarter-on-quarter increase in Q1 FY26, but several IT companies announced workforce reductions,' BNP Paribas Securities India said in a report. 'TCS laid off nearly 2 per cent of its employees, while HCL Technologies is adjusting its talent deployment outside India, particularly scaling down in the automotive engineering and R&D segment. Wipro incurred a restructuring charge of Rs 247 crore linked to severance payouts in Europe.' Understandably, the employee retrenchment has started the debate of GenAI starting to impact the workforce, it said. The layoffs in the Indian IT sector are increasingly becoming common mainly due to skill mismatches and deployment challenges. 'With growing pressure to reduce costs and align talent with AI-driven models, tech majors are slowing fresher hiring and trimming staff, signalling a structural shift in workforce strategy,' said Arun Kailasan, research analyst – Fundamental Research, Geojit Investments Ltd. Rather than going for lateral hiring, IT firms are focusing on upskilling their existing workforce in emerging areas like AI and generative AI to take care of project execution going ahead. Besides AI, other important factors for layoffs in the IT sector are the macroeconomic headwinds in the US due to tariff-related uncertainty and delay in rate cuts by the US Federal Reserve, resulting in a slower execution of projects by clients. These factors will affect the margins of domestic IT companies. 'During our April 2025 earnings call, we had called out delays in decision-making and projects start with respect to discretionary investments. This trend has continued and intensified to some extent in this quarter,' TCS chief executive officer and managing director, K Krithivasan, said during the Q1 FY26 earnings call. 'Global businesses were disrupted due to conflicts, economic uncertainties and supply chain issues. We saw cost pressures in our customers causing previously unseen project pauses, deferrals and decision delays that resulted in less than expected revenue conversion,' he said. In its recent policy announced on July 30, the Federal Open Market Committee (FOMC) kept the interest rate unchanged at 4.25-4.5 per cent. 'At the beginning of the year, there was an expectation that the US Fed would reduce rates by 50-100 basis points. This cut has been consistently getting extended. When interest rates are high, spending in the US gets impacted, including on IT. This has a bearing on the contracts awarded to Indian IT firms,' said an analyst. Analysts say that due to weak demand, IT companies are likely to slow down their hiring in the near future. 'With muted demand and tighter budgets, companies are focusing on optimising existing talent rather than expanding headcount. Hiring remains subdued, while utilisation rates are rising and attrition has stabilised. The shift is towards value-based deployment and reskilling for AI-driven roles, setting the stage for long-term workforce transformation,' Kailasan of Geojit Investments said. IT analysts said that domestic IT companies are likely to see soft earnings for the rest of 2025 amid volatile and uncertain geopolitical conditions. 'The main challenge remains the slowdown in decision-making among major US clients,' said Ashish Gupta, chief investment officer at Axis Mutual Fund. 'There's a lot of uncertainty around the outlook—questions about retail spending, how consumers will respond to potentially higher interest rates, and whether the US economy can maintain its momentum. The broader economic picture remains unclear.' A report by Nuvama Research said that the demand environment is expected to remain challenging for the next one to two quarters for the IT sector due to the macro — tariff-related — uncertainty. 'In the near term, we expect lack of clarity on macro to continue until most of the trade deals are announced. In general, a large part of the impact of delays was felt in Q1 FY26. The second quarter of FY26 can have some residual impact of the delays. If there are no further delays, Q2 FY26 will be at least better than the first quarter,' said Sumit Pokharna, vice president (Fundamental Research), Kotak Securities. IT sector experts anticipate recovery in 2026 as clarity on the US tariffs emerges and potential rate cuts by the US Federal Reserve help revive demand.

'Got Humbled': Vibe Coder Caught Using AI By Boss Gets Schooled
'Got Humbled': Vibe Coder Caught Using AI By Boss Gets Schooled

NDTV

time4 hours ago

  • NDTV

'Got Humbled': Vibe Coder Caught Using AI By Boss Gets Schooled

For a long time, writing code meant that software engineers sat long hours in front of a computer, typing out lines of instructions in a programming language. But in recent times, the rise of artificial intelligence (AI) has allowed anyone to 'vibe code', meaning the technology churns out the code after a user feeds it what they want. Now, an intern working at two places who used a similar modus operandi has revealed how the vibe conding tactic backfired for them. As per the now-viral post, the user said they were using Cursor/GPT to ship the product quickly whilst working at two companies. "I'm currently interning at 2 companies SRE at one, and SDE at a very early-stage startup (like 20 employees). At the startup, it's just me and the CTO in tech. They're funded ($5M), but super early," wrote the user in the r/developersIndia subreddit. While all was going well, the CTO of one of the companies started asking them in-depth questions about their code and this is where things turned pear-shaped. "The CTO started asking deep dive questions about the code. Stuff like, "Why did you structure it this way?" or "Explain what this function does internally." The code was mostly AI-generated, and I honestly couldn't explain parts of it properly." "He straight up told me: "I don't mind if you use AI, but you have to know what your code is doing." Then he started explaining my code to me. Bruh. I was cooked." The OP said the entire experience was 'super humbling' as he had been vibe coding without really understanding the "deeper stuff like architecture, modularisation, and writing clean, production-level code". 'How did you even...' As the post went viral, garnering hundreds of upvotes, social media users agreed with the CTO's remarks, while others questioned how the OP had landed the internship without knowing what the code meant. "I am working as QA, and you can't replace experience. You will have to learn over time. But asking questions is also a good approach. Why and how," said one user while another added: "Get to know your application's core system design. Decide your architecture which can scale in production later. Now use this as a knowledge base in Cursor/ChatGPT." A third commented: "If you can't say what that code is doing by looking at it, then how did you even get 2 internships?" A fourth said: "Best way to learn how to write clean code is reading open source project code. Hands down its the best way to learn plus have a curious mind." Notably, the term vibe coding has been popularised by Andrej Karpathy, who has worked with companies like Tesla and OpenAI.

DOWNLOAD THE APP

Get Started Now: Download the App

Ready to dive into a world of global content with local flavor? Download Daily8 app today from your preferred app store and start exploring.
app-storeplay-store