November 13, 2022
1 min read

US NSA tells developers to shun C and C++ programming language

Commonly used languages, such as C and C++, provide a lot of freedom and flexibility in memory management while relying heavily on the programmer to perform the needed checks on memory references…reports Asian Lite News

The US National Security Agency (NSA) has requested developers worldwide to shun old programming languages like C and C++ which are more prone to hackers to shift to new, memory safe languages.

Microsoft, Google and others have flagged vulnerabilities in codes due to memory safety issues and malicious cyber actors can exploit these vulnerabilities for remote code execution or other adverse effects, which can often compromise a device and be the first step in large-scale network intrusions.

“NSA advises organisations to consider making a strategic shift from programming languages that provide little or no inherent memory protection, such as C/C++, to a memory safe language when possible. Some examples of memory safe languages are C#, Go, Java, Ruby, and Swift,” the agency said in a new document.

Commonly used languages, such as C and C++, provide a lot of freedom and flexibility in memory management while relying heavily on the programmer to perform the needed checks on memory references.

Simple mistakes can lead to exploitable memory-based vulnerabilities.

“Software analysis tools can detect many instances of memory management issues and operating environment options can also provide some protection, but inherent protections offered by memory safe software languages can prevent or mitigate most memory management issues,” said the NSA.

Even with a memory safe language, memory management is not entirely memory safe.

“Several mechanisms can be used to harden non-memory safe languages to make them more memory safe. Analysing the software using static and dynamic application security testing (SAST and DAST) can identify memory use issues in software,” said the NSA.

“The compilation and execution environment can be used to make it more difficult for cyber actors to exploit memory management issues. Most of these added features focus on limiting where code can be executed in memory and making memory layout unpredictable,” the agency suggested.

ALSO READ: UAE, Egypt ink major energy deal

Previous Story

Climate protests grip Egypt, Spain and Germany

Next Story

White House ex-advisor Vikrum Aiyer joins Heirloom Carbon

Latest from -Top News

Hurricane Melissa leaves Caribbean in chaos

Hurricane Melissa leaves a trail of destruction across the Caribbean, claiming lives, wiping out homes, crippling infrastructure and triggering urgent global relief efforts amid rising humanitarian needs…reports Asian Lite News The Caribbean

Sharjah sets sail for London

At World Travel Market (WTM) London 2025, Sharjah is set to highlight both its deep-rooted cultural identity and forward-looking tourism strategy, demonstrating the emirate’s growing influence in global travel and destination marketing…reports

DP World to pump $5bn into India

DP World’s $5bn pledge strengthens India’s maritime future, powering green shipping, ship-repair capacity, talent growth and next-gen freight tech while deepening the nation’s global trade role…reports Asian Lite News DP World has

UAE mega-aid ship docks in Egypt

The shipment, one of the largest single consignments dispatched as part of the UAE’s air and sea bridge, includes essential food items…reports Asian Lite News A UAE humanitarian vessel carrying more than

Arab bloc hails UAE’s efforts in Gaza

Arab Parliament lauds UAE’s major aid efforts in Gaza and urges unified global backing for reconstruction, Palestinian statehood and a lasting peace grounded in the Two-State framework…reports Asian Lite News The Speaker
Go toTop

Don't Miss

Teen charged over New York NYE attack

The three officers, one of whom suffered a fractured skull

Biden rules out constitutional solution to debt crisis

Biden previously said he was looking into whether he could