Why authorization and authentication are necessary to API safety – and why they’re not sufficient
7 mins read

Why authorization and authentication are necessary to API safety – and why they’re not sufficient


This weblog was written by an unbiased visitor blogger.

The variety of machine identities for which organizations are accountable has “exploded” lately, based on Safety Boulevard. These machine identities embrace  gadgets and workloads. However in addition they embrace software programming interfaces (APIs). Organizations use APIs to attach the information and performance of their functions to these managed by third-party builders, enterprise companions, and different entities, per IBM. These connections allow totally different functions to speak with one another and to make use of the providers of each other to assist ship and streamline performance for customers.

APIs and machine identities beneath assault

Digital attackers are more and more taking an curiosity in APIs and machine identities. In 2020, as an illustration, Venafi discovered that assaults involving machine identities elevated 400% between 2018 and 2019. Kount additionally launched a report in 2020 through which 81% of enterprises revealed that they now cope with assaults pushed by malicious bots. 1 / 4 of respondents stated they’d skilled an assault that ended up costing them at the least half 1,000,000 {dollars}.

These findings elevate the query: Why are these assaults taking place?

The reply is that many builders are prioritizing pace of innovation over safety. Sure, a lot of right this moment’s cellular, net, and Software program-as-a-Service (SaaS) functions can be unattainable with out APIs. But it surely’s additionally true that APIs can expose delicate knowledge together with personally identifiable info when not correctly secured, leading to safety incidents that may undermine organizations’ enterprise pursuits. The Open Internet Software Safety Mission (OWASP) was due to this fact right in saying, “With out safe APIs, fast innovation can be unattainable.”

The problem right here is the multifaceted nature of API safety. OWASP, which pioneered the OWASP High 10 listing of software assaults, acknowledged the necessity for a brand new listing targeted on API assaults and in 2019, it created the OWASP API High 10.  Just one menace for the primary listing made it onto the second listing, displaying simply how totally different API assaults are. The next two threats are nice examples of how dangerous actors goal APIs vs. functions:

  • Damaged Object Degree Authorization: As defined by Heimdal Safety, Object Degree Authorization is an entry management mechanism that confirms a person can’t entry objects that they shouldn’t have entry to. Damaged Object Degree Authorization (BOLB) happens when an software doesn’t leverage this mechanism correctly. In doing so, a BOLB vulnerability can allow an attacker to entry delicate info dealt with by the app.
  • Damaged Consumer Authentication: Such a vulnerability happens in situations the place authentication mechanisms don’t operate as meant as a result of they weren’t applied correctly, famous OWASP. A malicious actor can subsequently weaponize Damaged Consumer Authentication to compromise a person’s authentication token and/or impersonate a person for a interval.

An summary of authentication and authorization

API safety is likely to be multifaceted, however some issues do repeat themselves. In actual fact, a lot of OWASP’s listing of high 10 API vulnerabilities revolve round inadequate authentication and authorization controls. To know the implications, it’s necessary to first outline what these safety controls entail.

In one other article, Safety Boulevard outlined authentication as “the method of figuring out customers and validating who they declare to me.” Most authentication schemes use a set of credentials made up of a username and password to authenticate somebody’s identification. Nevertheless, some schemes layer on further elements of authentication resembling a fingerprint, a One-Time Short-term Password (OTTP) generated by an authentication app, or a bodily safety key to safe entry to an account within the occasion of a password compromise.

Authorization comes after authentication. This stage entails granting full or partial entry rights for databases, accounts, or different assets to an authenticated person. On this sense, a person may be authenticated, however they nonetheless may not have the authorization to entry sure techniques throughout the group. Concurrently, attackers can capitalize on a damaged authentication system to abuse a sufferer’s stage of authorization for accessing delicate techniques and knowledge.

Authentication and authorization are obligatory for defending in opposition to many safety threats right this moment. That’s particularly the case for insider threats. The longer that individuals are with a corporation, the extra they have a tendency to gather permissions over time which will exceed what’s required for his or her job. A few of these permissions is likely to be related to present work duties, for instance, whereas others may hint again to initiatives long-since accomplished. Others may present rights the person by no means wanted.

These kind of permissions emphasize the significance of the precept of least privilege and ongoing permissions opinions. But it surely additionally underscores what can occur when strong authentication and authorization aren’t in place. For instance, an exterior attacker can compromise an account protected with solely a single layer of authentication (a single credential set) and abuse an absence of authorization checks to reveal info dealt with by the API. With out correct validation, a malicious insider may do the identical factor. There’s the assumption that authenticated customers received’t go search for issues that they shouldn’t. However Account Takeover (ATO) assaults do occur, and sure authorizations allow some of these assaults to happen.

present robust API authentication and authorization

Acknowledging the threats above, Salt Safety gives the next advice: “Externalize your entry controls and identification shops wherever doable, which incorporates mediation mechanisms like API gateways….” InfoWorld clarified that API gateways operate as single factors of entry right into a system, permitting safety groups to pay attention their system hardening efforts there as an alternative of distributing their efforts throughout a number of APIs. Gateways assist by facilitating authentication and authorization on the enterprise stage by concentrating safety logic in a single location. Organizations may use Identification and Entry Administration (IAM) options in addition to key administration applied sciences to additional lock down their APIs.

It’s necessary to spotlight, nonetheless, that authentication and authorization are usually not ample for API safety. Organizations additionally want tooling that can establish when dangerous actors are in a position to manipulate API calls and alter authentication or authorization parameters that, individually, look correct however have truly been modified to allow inappropriate entry to accounts. So get your authentication and authorization completed proper, however don’t remainder of these laurels.

David Bisson

In regards to the Writer: David Bisson

David Bisson is an info safety author and safety junkie. He is a contributing editor to IBM’s Safety Intelligence and Tripwire’s The State of Safety Weblog, and he is a contributing author for Bora. He additionally usually produces written content material for Zix and numerous different firms within the digital safety house.

Learn extra posts from David Bisson ›

Leave a Reply

Your email address will not be published. Required fields are marked *