Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Cybercrime

GrammaTech Releases Open Source API Security Tool

Application security testing company GrammaTech announced on Wednesday that it has released an open source tool designed to detect API usage errors.

Application security testing company GrammaTech announced on Wednesday that it has released an open source tool designed to detect API usage errors.

The tool, named SWAP Detector, was developed as part of a research project sponsored by the U.S. Department of Homeland Security (DHS) and GrammaTech says it can be highly useful for DevOps application security testing.

A lot of software applications rely on third-party APIs and it’s important for developers to identify API usage errors, which can introduce security and reliability issues.

SWAP Detector analyzes function calls in code in an effort to detect potential swapped argument errors. If such an error is detected, the user is warned and the warning is also assigned a score.

The tool can be integrated with static analysis products such as Clang-Tidy, Clang Static Analyzer, and PyLint. SWAP Detector initially focuses on applications written in C and C++, but GrammaTech says it’s applicable to code written in other programming languages as well, particularly for interpreted — rather than compiled — languages.

“SWAP Detector uses multiple error-detection techniques, layered together to increase accuracy. For example, it compares argument names used in call sites with the parameter names used in corresponding declarations,” GrammaTech explained.

“In addition, it uses ‘Big Code’ techniques, applying statistical information about usages of ‘known good’ API-usage patterns collected from a large corpus of code, and flagging usages that are statistically anomalous as potential errors. To improve the precision of the reported warnings, SWAP Detector applies false-positive reduction strategies to the output of both techniques,” it added.

The SWAP Detector source code is available on GitHub.

Advertisement. Scroll to continue reading.

Related: ‘Have I Been Pwned’ Code Base Going Open Source

Related: Nearly 1,000 Vulnerabilities Found in Popular Open Source Projects in 2019

Related: IBM Releases Open Source Toolkits for Processing Data While Encrypted

Related: Google Releases Open Source Tool for Finding File Access Vulnerabilities

Written By

Eduard Kovacs (@EduardKovacs) is a managing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

Expert Insights

Related Content

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Cybercrime

As it evolves, web3 will contain and increase all the security issues of web2 – and perhaps add a few more.

Cybercrime

Luxury retailer Neiman Marcus Group informed some customers last week that their online accounts had been breached by hackers.

Cybercrime

Zendesk is informing customers about a data breach that started with an SMS phishing campaign targeting the company’s employees.

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.

Artificial Intelligence

The release of OpenAI’s ChatGPT in late 2022 has demonstrated the potential of AI for both good and bad.

Cybercrime

Satellite TV giant Dish Network confirmed that a recent outage was the result of a cyberattack and admitted that data was stolen.