In our previous blog, we tracked the history and trajectory of APIs and how they came into being.
APIs define the roadmap of an application and become the direct contact for sharing data. The exposure to vulnerabilities via the grained access have multiplied with time with developers creating an open architecture for sharing the functionality to meet the need for scale. The increased dependencies soon became a habit. And as we know, old habits die hard.
This brought APIs the ill fame of becoming the new Shadow IT since security was being ignored in the whole process of leveraging APIs. It was impacting organisations in terms of entrusting them with critical information.
In this blog, we will address the rise of Shadow IT, how APIs impact the security and how you can avoid the security breach.
What is Shadow IT?
When an information related to technology is utilised or managed without the knowledge of IT departments within the organisation, it is termed as Shadow IT. It is considered as an act of taking actions on behalf of the knowledge/IT team. In the recent times, people adopted cloud services and the growth of shadow IT accelerated, i.e., users downloaded the services without prior expertise or technical know-how of the product.
Departments like marketing, finance and sales started coming up with their own solutions and software that could assist them in their work.
The visibility of the organisation’s data increased with each new application that enabled access without IT team’s involvement. Also, the lack of a standard security check was found missing upon intervention. On the positive end, shadow IT seems to be helping the businesses in becoming more competitive and employees more productive. For instance, using SaaS applications improved the communication systems within the organisations without needing IT department’s help.
Can API Security Impact Enterprises?
2018 saw a lot of cases where the illegally extracted data or security breaches listed APIs as the prime culprit.
As we know, the metrics used to secure the web doesn’t work the same way for securing the APIs. They are fundamentally different and possess different risk factors that need to be managed by the enterprises.
Also, there are often undiscovered APIs that pass the traditional security mechanisms and run on ephemeral infrastructure in the public cloud. There had to be a new path of solutions.
Thus, the business critical data that is used to build an API need to be tightly protected with the best of security tools and practices.
Here are some tips for organisations to help keep their APIs secure:
#1 Sanitisation of Parameters
Keep your APIs free of germs(bugs) throughout the implementation.
The process of sanitisation makes the data schema restricted and permissible for only a certain kind of inputs. This can be done with hand-built schemas that are using typing, ranges, sets and explicit white listing. Constraining the structure with limited inputs further helps in developing APIs that are not prone to potential threats. You can either use the XML schema language or the JSON schema description languages, the latter being simpler to compose and understand, making it simpler to secure.
#2 Put yourself in the shoes of a Hacker
Staying one step ahead of the potential hackers is the key. Think how a hacker would try to breakthrough to access your data. If organisations put into context this guiding principle, they can build APIs with minimum data and highest of security right in the development of the interfaces.
Designers and developers often get trapped into opening gateways to hackers by wanting to create more and developing faster APIs. The design should be the most crucial part of the process where the focus on security is maintained throughout while designing a web interface.
It is a learning lesson for the companies that deal with such critical cases and are endowed with user-sensitive data.
#3 Think about Access
Prepare in advance about the degrees of access for users. Determine the exact kind of access for developers too.
In case of Twitter, a bug in the API exposed user’s private messages to third party developers. One minor bug affected about three million active users and brought their privacy under threats.
Therefore, enterprises should look into the use cases and their vulnerabilities while building APIs and creating security.
#4 Mandate Security Training
Invest in the training of developers from the very beginning to build a proactive team that is diligent to minimise the security threats.
Many enterprises do not want to spend on the training due to employee retention cases. However, it is for their own long term benefit. It is better to invest in the training than afford a security breach of business critical data at a later stage.
Maintaining a continuous monitoring process during and after the completion of an API can also help in leaving no loopholes for hackers to breach your security walls.
#5 Other Threats
Apart from the schema threats, there are common attack signatures, like SQL injection or script injection attacks.
Also, there are network-level denial of service (DoS) assaults. Since they follow a common pattern, it gets easy to spot omissions via scanning the raw input.
DoS attacks are capable of exploiting parameters. DoS consumes resources on an API server affected due to very large messages, heavy and overly complex data structures.
Organisations can invest in virus detection services that protects the risky encoded content.
#6 Make SSL a Rule
When established as a mandate, the SSL/TLS will serve as a basic requirement. It will effectively defend your APIs against the risks and provide integrity on the exchange of data. During a transaction between a client and a server, the SSL/TLS will authenticate it with certifications too.
#7 Tested Solutions
The method of inventing the wheel doesn’t work when it comes to security. There are many already existing API security frameworks available at your disposal. Creating your own will only increase the cost and time for the enterprise.
Start with logically separating the implementation of the API from the security of APIs by segregating them into different service tiers. This provides the developers with a narrowed focus completely dedicated to the application domain, designing the API and its integration between different applications. As for security, that’s a domain for experts focusing on threats and data breach issues.
Security via API-led Connectivity
On a different note, enterprises can adopt an API-led connectivity approach for managing a defined connection and exposing assets with APIs.
In this approach, the asset itself becomes a managed API and is discoverable through self-service. It will secure the design as the nodes are connected via standardised and well-defined APIs. Debunking the point-to-point connection, the security measures actually happen in each service developing group.
When teams build products on the already existing networks of APIs and reuse them for connectivity, they contribute to the API nodes which in turn secure your critical assets.
Organisations need to learn and constantly adapt to the advancing technology. In the rush of developing APIs, the importance of security often gets neglected. There is a dire need to recognise how API might turn into the new shadow IT and it starts with identification of any kind of potential breach. IT can only help you till you help it with accuracy of data and by adopting the best of industry practices.
A Content Associate at OpenSense Labs, Jayati Kataria is a social media aficionado. When not scrolling down her Instagram feed, she can be found reading classics on her way to new adventures around the world. Also, she loves to binge watch and catch on the trending TV series.