5 Steps to Strengthen API Security

APIs are the connective tissue of scalable websites — fundamental to functioning in today’s digital world. But much like the physical world, weaknesses in connections and associated protocols can result in significant, sometimes existential, trouble.

A recent instance includes data leaks that stemmed from the misconfiguration of Microsoft Power Apps portals to enable public access. When examining this case, UpGuard found that the type of data varied between portals, and even included personal information that was used for COVID-19 contact tracing and COVID-19 vaccination appointments — as well as Social Security numbers, employee IDs, and millions of email addresses and names. 

The operators of those portals aren’t alone. API misconfigurations and the attacks they attract occur more regularly than one might anticipate. As a Salt Security report found, 94% of the nearly 200 enterprise security officials surveyed said their organization experienced an API security incident in 2020. The report also uncovered a 348% increase in malicious API traffic over six months, highlighting how attackers are focusing their attention on data access.

OWASP also started a separate “OWASP API Security Top 10” in 2019 to monitor API weaknesses. APIs represent a ready method to access data exposed by an organization, some APIs are intended for public use, while others are intended for use solely by applications and webservices within an organization. Regardless of usage, APIs are constructed to provide direct data access, which is why explicitly testing to ensure an API doesn’t return excess data or allow authorization bypasses is crucial. In the BSIMM12, activity ST2.6 covers fuzz testing of APIs, but only 12% of organizations were found to be performing this activity.

To change this API narrative for the better, the following five best practices can be used to strengthen API monitoring and protection.

1. Know What You Have So You Can Keep It Protected 

While it may be considered a cliché, it’s true — when it comes to security, you can’t protect what you don’t know you have.  This is the problem with far too many APIs. Code may not be formally documented in a way that humans or machines can accurately digest. This can lead to it not getting tested.

In order to address this and ensure you know what you have:

  • First build an inventory of your API-based application assets.
  • Next, you’ll want to prioritize them by risk level based both on business impact and data usage.
  • Once assessed by risk level, it’s time to find API endpoints for those assets.
  • To preserve your API inventory, you’ll also want to track automated deployments. 
  • Lastly, you’ll want to simplify issue detection through automation via security tools and services.

Identity and access management (IAM) is a standard security practice, but when it comes to APIs, the focus should be on how users authenticate with the API and how API authorization segments or scopes the data provided by the API. Luckily, there are many ways to go about this, the key being to track a user through the system. It’s critical that each method within an API is developed with an understanding of user authentication and what the minimum dataset for the activity implemented by the method might be. 

2. Understand Data Validation and Trust Your APIs

APIs validate the request data they receive from a data consumer and determine whether or not it is malformed. If it is malformed, will the request data be validated?

Similar to web applications, conducting input validation is essential for APIs. An application that uses public APIs accepts the risk of a man-in-the-middle attacker that could modify the data returned by the API or modify the data presented to the API on its behalf.  This is why an API must know what to do when presented with malformed data. The validation process here is a bit different — while the values of parameters need to be checked, API data is often a part of a data schema which means each parameter could have meaning relative to the remainder of the data. This is why you need validation at the schema level versus solely in the data element or parameter level.

3. Don’t Overlook the Cryptography

Ensuring data at rest and in transit is encrypted in a secure manner as and when needed is vitally important, and should go without saying. This includes implementing expiration semantics for items like the AuthZ JSON Web Tokens, request forgery tokens, or for validating various cryptographic signatures and certificates used during authorization and by message encapsulation protocols.

4. Avoid Misconfiguration

Deploying an API in a cloud environment or with containers can weaken efforts put into securing your APIs. If you plan to select one of those deployment environments, make sure that they are configured securely. Even the most securely developed application can be weakened by poor deployment practices, and APIs are no different. API security misconfiguration can include a variety of things such as: unpatched systems, unprotected files and directories, unhardened images, missing, outdated, or misconfigured TLS. In fact, OWASP API Top 10 categorized API misconfiguration as API7:2019.

5. Ensure Active Monitoring/Alerting

Successfully monitoring your APIs and ensuring an effective alert system requires several key areas of focus, including:

  • Examine the content: Perform application layer scanning. This will help monitor for someone trying to use SQL injection or another HTTP-based attack. Having a clear understanding of how you are examining traffic coming into your API is essential, but traffic monitoring must also include processes to identify anomalies.
  • Bot/attack detection: Ensure that controls are in place or baked into your APIs to protect against common attack techniques. It’s critical to also be able to identify automated attacks conducted by bots, including brute force attacks.
  • Data throttling: Have a strategy in place on how you will limit API usage for rogue API clients. Excess traffic might not be malicious, but if it impacts operations, your customers will care.
  • Build an audit and trace program: Put in place a tactical auditing process, including auditing logs and meaningful activity alerts. The program should be able to clearly identify the source of any findings such that corrective action is taken. 

Security should be built into your software, and by applying these concepts it will help to ensure a deeper understanding of your APIs and the role they play in your software. 

文章来源于互联网:5 Steps to Strengthen API Security

发布者:小站,转转请注明出处:http://blog.gzcity.top/4281.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022年5月3日 18:17
下一篇 2022年5月3日 18:17

相关推荐

  • TLS/SSL Explained: TLS/SSL Terminology and Basics

    In Part 1 this series we asked, What is TLS/SSL? In this part in the series, we will be describing some of the TLS/SSL terminologies. Before diving deeper into TLS, let’s first hav…

    2022年5月3日
    71210
  • log4j 0day漏洞情况分析及说明

    一、背景简介 2022年7月30日起,各大威胁情报社区及安全圈内开始盛传log4j存在0day漏洞,由于log4j在去年12月爆出严重的jndi注入漏洞,可通过在特定点插入恶意的jndi payload达到执行任意代码进而控制主机的目的。 log4j2(一般简称log4j)是Apache基金会开发维护的开源java日志组件,在以Java开发的系统中大量被直接…

    2022年8月3日
    22000
  • Keys to a Great API Security Solution

    So, do you think your APIs are secure? You might want to take another look at your security.  Figure 1 What is API security? APIs are everywhere, and API Security is of the utmost …

    2022年5月3日
    59830
  • Angular + React: Vulnerability Cheatsheet

    Securing applications is not the easiest thing to do. An application has many components: server-side logic, client-side logic, data storage, data transportation, API, and more. Wi…

    安全 2022年5月3日
    660100
  • WebLogic中间件任意命令执行漏洞。

    一、背景简介 Weblogic是一款商用中间件应用服务器产品,可以为应用程序提供运行访问环境。 二、漏洞详情 公开日期:2022-07-29漏洞编号:暂无危害等级:高危漏洞描述:由于没有过滤危险字符,导致攻击者可以对T3/IIOP接口发送恶意内容,执行任意命令。 三、影响版本 未知 四、处置情况 1.暴露在公网的WebLogic应配置对外禁用T3和IIOP,…

    2022年8月3日
    3.2K8470

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

评论列表(32条)

  • indiiskii pasyans _jtSl
    indiiskii pasyans _jtSl 2024年8月18日 13:27

    индийский пасьянс онлайн гадание бесплатно [url=http://indiyskiy-pasyans-online.ru/]индийский пасьянс онлайн гадание бесплатно [/url] .

  • Elektrokarniz_expr
    Elektrokarniz_expr 2024年8月18日 22:32

    электрокарнизы для штор купить [url=https://www.provorota.su]электрокарнизы для штор купить[/url] .

  • Trevojnaya knopka rosgvardiya_lbEr
    Trevojnaya knopka rosgvardiya_lbEr 2024年8月19日 00:34

    ктс вневедомственная охрана [url=https://trknpk.ru]https://trknpk.ru[/url] .

  • Vivod iz zapoya rostov_vtPa
    Vivod iz zapoya rostov_vtPa 2024年8月19日 07:18

    срочный вывод из запоя на дому ростов [url=http://vyvod-iz-zapoya-rostov111.ru/]http://vyvod-iz-zapoya-rostov111.ru/[/url] .

  • vivod iz zapoya rostov_zper
    vivod iz zapoya rostov_zper 2024年8月21日 04:05

    вывод из запоя ростов на дону на дому [url=vyvod-iz-zapoya-rostov112.ru]вывод из запоя ростов на дону на дому[/url] .

  • vivod iz zapoya rostov_wnMt
    vivod iz zapoya rostov_wnMt 2024年8月21日 04:34

    наркология вывод из запоя ростов [url=https://vyvod-iz-zapoya-rostov11.ru]наркология вывод из запоя ростов[/url] .

  • Narkolog na dom krasnodar_xnMr
    Narkolog na dom krasnodar_xnMr 2024年8月23日 02:34

    выезд нарколога на дом цена [url=https://narkolog-na-dom-krasnodar12.ru/]выезд нарколога на дом цена[/url] .

  • vivod iz zapoya_yfpa
    vivod iz zapoya_yfpa 2024年8月23日 02:56

    выведение из запоя [url=https://xn——7cdhaozbh1ayqhot7ooa6e.xn--p1ai/]выведение из запоя[/url] .

  • pansionat dlya pojilih_hmmn
    pansionat dlya pojilih_hmmn 2024年8月23日 14:07

    дом пенсионеров в алуште [url=https://xn—–1-43da3arnf4adrboggk3ay6e3gtd.xn--p1ai/]дом пенсионеров в алуште[/url] .

  • Vivod iz zapoya krasnodar_chet
    Vivod iz zapoya krasnodar_chet 2024年8月25日 01:34

    вывод из запоя цены краснодар [url=http://vyvod-iz-zapoya-krasnodar12.ru/]вывод из запоя цены краснодар[/url] .

  • Vivod iz zapoya krasnodar_bbPl
    Vivod iz zapoya krasnodar_bbPl 2024年8月25日 01:54

    вывод из запоя анонимно краснодар [url=https://vyvod-iz-zapoya-krasnodar11.ru/]вывод из запоя анонимно краснодар[/url] .

  • Prodvijenie saitov v Moskve_efMn
    Prodvijenie saitov v Moskve_efMn 2024年8月27日 06:06

    сео продвижение заказать москва [url=https://prodvizhenie-sajtov-v-moskve213.ru/]https://prodvizhenie-sajtov-v-moskve213.ru/[/url] .

  • Vivod iz zapoya v stacionare_qeEa
    Vivod iz zapoya v stacionare_qeEa 2024年8月29日 10:58

    выведение из запоя воронеж стационар [url=vyvod-iz-zapoya-v-stacionare.ru]выведение из запоя воронеж стационар[/url] .

  • Vivod iz zapoya v stacionare_opMi
    Vivod iz zapoya v stacionare_opMi 2024年8月29日 19:47

    вывод из запоя в стационаре [url=https://vyvod-iz-zapoya-v-stacionare13.ru/]вывод из запоя в стационаре[/url] .

  • reiting kapperov_pket
    reiting kapperov_pket 2024年8月30日 02:33

    проверенные капперы [url=https://rejting-kapperov13.ru]проверенные капперы[/url] .

  • Kvartirnii pereezd_hrmr
    Kvartirnii pereezd_hrmr 2024年8月30日 21:50

    квартирный переезд в минске [url=kvartirnyj-pereezd11.ru]квартирный переезд в минске[/url] .

  • fanera kypit_mxml
    fanera kypit_mxml 2024年9月2日 06:37

    ламинированная фанера купить [url=https://fanera-kupit11.ru]https://fanera-kupit11.ru[/url] .

  • kypit JBI_oyKl
    kypit JBI_oyKl 2024年9月2日 14:43

    железобетонные изделия купить [url=https://kupit-zhbi.ru]железобетонные изделия купить[/url] .

  • vivod iz zapoya v stacionare_zpsr
    vivod iz zapoya v stacionare_zpsr 2024年9月5日 02:42

    лечение наркозависимости стационаре [url=http://vyvod-iz-zapoya-v-stacionare-samara.ru/]http://vyvod-iz-zapoya-v-stacionare-samara.ru/[/url] .

  • binance "oppna konto
    binance "oppna konto 2024年9月5日 07:01

    Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • Kak zarabotat v internete_uiPi
    Kak zarabotat v internete_uiPi 2024年9月5日 07:28

    заработок в сети [url=https://kak-zarabotat-v-internete11.ru/]https://kak-zarabotat-v-internete11.ru/[/url] .

  • Vivod iz zapoya v sankt peterbyrge_hnOl

    выведение из запоя спб [url=https://vyvod-iz-zapoya-v-sankt-peterburge.ru/]выведение из запоя спб[/url] .

  • Elektrokarniz_qtKi
    Elektrokarniz_qtKi 2024年9月7日 06:41

    электрокарниз для дома купить [url=www.elektrokarniz2.ru]www.elektrokarniz2.ru[/url] .

  • kazino onlain_jnki
    kazino onlain_jnki 2024年9月8日 06:21

    онлайн казино беларусь [url=www.stroy-minsk.by/]онлайн казино беларусь[/url] .

  • Reiting kapperov_yrpt
    Reiting kapperov_yrpt 2024年9月8日 13:22

    капперы [url=https://rejting-kapperov14.ru]капперы[/url] .

  • grynt dlya rastenii_tuOi
    grynt dlya rastenii_tuOi 2024年9月9日 01:30

    земля грунт для цветов [url=https://dachnik18.ru/]dachnik18.ru[/url] .

  • Kapelnica ot zapoya kolomna_lmpl
    Kapelnica ot zapoya kolomna_lmpl 2024年9月9日 21:40

    капельницы от запоя [url=https://www.kapelnica-ot-zapoya-kolomna.ru]капельницы от запоя[/url] .

  • binance Code
    binance Code 2024年10月4日 10:36

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  • meleant
    meleant 2024年11月12日 04:32

    The Swede Join Date May 2007 Location Indianapolis, Indiana, United States Age 37 Posts 6, 898 Rep Power 10018 priligy over the counter Beta Blockers Are Associated With Reduced All Cause Mortality Among HFpEF Patients

  • promokody_jrkt
    promokody_jrkt 2024年11月15日 07:12

    продамус промокод скидка [url=https://angelladydety.getbb.ru/viewtopic.php?f=44&t=43500/]https://angelladydety.getbb.ru/viewtopic.php?f=44&[/url] .

  • promokody_bkkt
    promokody_bkkt 2024年11月15日 17:20

    промокод prodamus [url=www.forumsilverstars.forum24.ru/?1-2-0-00000162-000-0-0-1731577187]www.forumsilverstars.forum24.ru/?1-2-0-00000162-00[/url] .

  • meleant
    meleant 2024年11月20日 19:37

    [url=https://fastpriligy.top/]what is priligy dapoxetine[/url] 693 Endoscopic ultrasound has been shown to be much more sensitive and specific