Securing government APIs

 

Connecting state and local government leaders

As application programming interfaces are deployed to the cloud, automation ensures they operate securely in ephemeral serverless architectures, containers or microservices.

Government agencies have embraced standards-based application programming interfaces (APIs) as a simple and economical way to share information with citizens and contractors as well as with other agencies and stakeholders. API technology can create security vulnerabilities, however. Securing APIs is a process that must begin at the development stage and continue across the entire API lifecycle. In this context, automation of API security is emerging as a best practice.

A brief overview of standards-based APIs

APIs enable software applications to share data and procedural calls with each other. This isn’t new technology. Computers have been able to talk to each other since the 1960s. Until about 10 years ago, though, such software interoperation was cumbersome and costly, requiring custom coded or proprietary connectors.

The new generation of APIs is built with open standards like Representational State Transfer (REST). These universally free standards make it possible for an application to interoperate easily and inexpensively with virtually any other piece of software or data source. People use APIs all the time without realizing it. When users look up stock prices through a banking app on their phone, for example, the bank app is calling on the stock exchange’s API to get the requested data.

What government APIs do

Government agencies use APIs to streamline processes and improve service to citizens. The federal government now has an estimated 500 public APIs in operation and a countless number of private APIs. The Census Bureau, for example, has published 24 APIs. These enable software developers to write API calls that retrieve information from the Bureau’s international trade datasets and geocoding services, as well American Community Survey datasets.

At this point, most government APIs reside on-premises at government data centers. This is about to change, however, as agencies' software and data assets move to the cloud in response to the 2019 Federal Cloud Computing Strategy, known as Cloud Smart.

Federal CIO Suzette Kent put it this way: “Cloud Smart embraces best practices from both the federal government and the private sector, ensuring agencies have the capability to leverage leading solutions to better serve agency mission, drive improved citizen services and increase cyber security.”

What the government risks by exposing APIs

As with all industries, agencies need education about cybersecurity and the most vulnerable API attack vectors as their assets move to the cloud.

With weak encryption standards and unauthenticated and insufficient authorization, APIs can expose an agency to security risk. The direct data access APIs provide also makes it easier for malicious actors to extract potentially sensitive information. For instance, a hacker could create an API call that pulls out classified data because the government API is not configured to block such a request. Or, it may not have any limits on data retrieval API calls, so a hacker could abuse an API to extract records without being challenged.

A recent Gartner report on API security highlighted the looming threat. Exposed APIs today account for 40% of attack surface area, but by 2021, Gartner predicted that 90% of web-enabled applications will have more surface area for attack in the form of exposed APIs than the user interface. The research group further predicted that by 2022, API abuses will move from being an infrequent attack vector to become the most frequent -- resulting in data breaches for enterprise web applications.

Why are APIs projected to be such a source of risk? The cloud is a significant factor here. While any API can be insecure if it’s not managed properly, at least on-premises there is a more methodical and trackable process to develop and deploy an API. In the cloud, developers can quickly throw APIs up on cloud platforms using ephemeral serverless architectures, containers or microservices.

This creates two security problems. One is the inherent complexity of the environment, which may make it hard to determine how secure any given API is at a moment in time. Also, system admins can spin resources up and down so rapidly that it becomes hard to keep track of the APIs being hosted in the cloud. Further, a developer could create an API without telling anyone, put it up on the cloud, and expose government data to unauthorized access in the process. This is known as a “shadow API.”

The pace of development causes trouble for APIs, too. The risk of an API getting deployed without proper access controls or monitoring becomes quite high as agencies switch to DevOps and the continuous integration/continuous deployment (CI/CD) practices. In addition, commercial off-the-shelf software products frequently come with ready-to-go APIs. An admin who installs the software might inadvertently leave APIs open to unauthorized external access.

The need to secure APIs across their entire life cycles

It is possible for government agencies to develop secure APIs and keep them secure across their entire lifecycle. API security must be a continuous process; it is not effective to check an API for malicious code content, add some access controls, deploy it and revisit it only to prepare for audits. Rather, it is essential to monitor that API’s behavior continuously. Then, as it nears the end of its life (which might be as little as 72 hours after it was created), the best practice is to conduct rigorous vulnerability analysis with remediation steps to address problems that could lead to a data breach.

Automation makes effective API security possible

Security process automation combined with automated API discovery are the two key success factors for effective API security programs in the government context. API security is sufficiently complicated that automation is essential for keeping SecOps or DevSecOps team members on top of their APIs. In parallel, automated API discovery inventories all deployed APIs relevant to the agency – including both permitted and shadow APIs – and identifies that that must be controlled under security policies.

Conclusion

APIs have the potential to improve government functioning and service delivery. Agencies are moving to cloud computing, a step that will lead to exponential growth of APIs and their security risks. Innovations like microservices and serverless architectures, along with new methodologies like DevOps and CI/CD, all promise great benefits to IT, but they create new API risk exposure. Government agencies, especially those working the cloud, need rigorous API security countermeasures. To this end, the best practice is to employ automated API security processes and continuous API detection and monitoring across the full API lifecycle.

NEXT STORY: AWS JEDI protest points at Trump

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.