Code

Top Security Mistakes in Software Development

Top Security Mistakes in Software Development

Free course: "Quick Start in Python"

Learn more

Head of Security at ManyChat Armenia. He enjoys sports, especially basketball and mountain trekking, which helps him maintain his physical fitness and develop team spirit.

Links are an important element on the internet, providing connections between various resources and pages. They play a key role in user navigation and search engine optimization. Effective links help improve a website's visibility in search engines, contributing to higher rankings. It is important to use relevant anchor text that accurately reflects the content of the page being linked to. Internal links, which facilitate site navigation and promote deeper content indexing, are also worth considering. External links, in turn, can increase your website's authority if they lead to reliable and high-quality resources. Proper use of links helps not only improve SEO rankings but also enhance user experience, which ultimately affects the success of your online project.

Security vulnerabilities in software development are constantly evolving. The OWASP organization, founded in 2001, analyzes current trends and common vulnerabilities in web and mobile applications. She periodically conducts research and publishes updated lists of relevant bugs. The last update of the OWASP Top 10 list was made in 2021. These materials are an important resource for developers, allowing them to identify and prevent potential security threats in their projects.

Currently, relevant security threats include:

— Malicious software, including viruses, spyware, and ransomware, which can cause serious damage to computers and networks.
— Phishing, which is a fraudulent attempt to obtain users' personal information through fake emails or websites.
— Vulnerabilities in software that attackers can exploit to gain unauthorized access to systems and data.
— Denial of service attacks. (DDoS) attacks aimed at overloading servers and making services unavailable to users.
Threats related to the Internet of Things (IoT), where devices with insufficient security measures can become targets for attacks.

These threats require increased attention and the implementation of effective security measures to prevent incidents and ensure data security.

  • Incorrect implementation of authentication and authorization systems;
  • Configuration errors in application components;
  • Server-side request forgery attacks, when an attack on internal infrastructure is carried out through an external server.

Injections remain one of the most discussed topics in the field of web application security. In recent years, their popularity has somewhat declined, as many modern frameworks offer built-in protection mechanisms. These technologies help developers avoid common injection-related mistakes, thereby increasing the level of application security. However, it is important to remember that while built-in protection significantly reduces risks, it is impossible to completely eliminate the possibility of injections. Developers must remain vigilant and regularly update their knowledge of injection protection techniques to effectively protect their applications from potential threats.

Bugs and recommendations for resolving them can be found in the OWASP community. This community provides valuable resources for improving the security of web applications, including tips on identifying and fixing vulnerabilities. Familiarity with OWASP materials will help developers and security professionals better protect their projects from potential threats.

What you need to protect yourself from an attack

Hackers, like everyone else, strive for maximum efficiency. If they find an unprotected admin panel with a password that has been compromised as a result of a data leak of some online service, they will certainly take advantage of it. Many employees often reuse passwords, which makes such attacks even more attractive to attackers. This approach to hacking is much easier than lengthy study of code in search of complex vulnerabilities. This highlights the importance of using unique and complex passwords and implementing robust security systems to prevent unauthorized access.

To protect against basic, untargeted attacks, when the attacker doesn't have significant resources to attack your company, simply adhere to basic cyber hygiene principles. These simple measures will significantly improve the security of your information and systems. Regular software updates, the use of strong passwords, employee security training, and proper data access management are key factors in preventing cyberattacks. It's also important to conduct regular security audits and vulnerability assessments to ensure a timely response to potential threats. Following these recommendations will create a reliable barrier against most simple attacks and protect your assets from intruders.

  • use a VPN to access critical services;
  • use EDR agents on workstations and servers;
  • install antiviruses and security tools on computers;
  • use antispam systems that help filter phishing emails;
  • configure MFA (multi-factor authentication) to access critical systems and admin panels;
  • install patches for various system elements in a timely manner - OS, applications, server software;
  • scan systems for known vulnerabilities;
  • update third-party open source libraries when vulnerability fixes are released.

Many corporations invest significant amounts in security, but often ignore the basic principles of cyber hygiene. This is confirmed by recent incidents such as the passwordless server configuration bug at Microsoft in 2019, which led to a large data leak from the cloud system. Effective cybersecurity requires not only large-scale financial investments but also adherence to basic rules that can prevent serious leaks and other threats.

Photo: Drazen Zigic / Shutterstock

Lack of employee security training can lead to phishing attacks, which are one of the simplest and most cost-effective methods of intrusion. Such attacks can be carried out in as little as 30 minutes. To do this, a form imitating a personal account is created and emails with a link to it are sent. In large companies, the likelihood that an employee will enter their username and password in such a form increases significantly. Employee training in cybersecurity basics and increased awareness can significantly reduce the risks associated with phishing and other threats.

Why it's important for infrastructure engineers to be friends with security professionals (and vice versa)

IT infrastructure is a key element of the entire tech stack. This is why the security department actively collaborates with the unit responsible for infrastructure. Effective interaction between these two areas ensures the reliability and protection of data and minimizes the risks associated with cyber threats. This synergy allows organizations to achieve a high level of security and resilience for their IT systems.

Infrastructure engineers are required to understand the security mechanisms in the systems they maintain. However, their primary focus is often on ensuring the stable operation of the infrastructure. Therefore, for the effective functioning of the IT infrastructure, it is important that the information security team and the infrastructure engineering team work closely together. A shared understanding of security aspects will help prevent threats and ensure reliable protection of data and systems.

Kubernetes, operating systems, network equipment, and cloud providers today are equipped with many built-in security mechanisms. These mechanisms are complex systems that require a deep understanding of how they work. It is important to study in detail how these tools function to understand both their benefits and the potential risks associated with activating each of them. Understanding these aspects will help ensure reliable protection of the IT infrastructure and minimize security threats.

If a site uses the outdated TLS 1.0 protocol, disabling it can be a simple process. However, it should be taken into account that this will result in the website being unavailable to a certain portion of users using older operating systems. Assessing the impact on the customer base is important to ensure the security and relevance of the web resource.

Infrastructure engineers are required to have knowledge of the security of their platforms, but the cybersecurity department usually plays the primary role in activating and configuring protection mechanisms. This is due to the fact that activating IT infrastructure security components requires their ongoing support, which is not always a priority for operational departments. Therefore, interaction between infrastructure engineers and the cybersecurity team is critical to effectively ensuring the security and stability of systems.

At any scale, whether a company is large or small, IT specialists must pay attention to security. Large organizations may have many servers, while small ones may have only a few. However, each of these structures has resources that require protection. Information and system security is a key aspect of the work of IT specialists, as it minimizes the risks of data leaks and attacks, ensuring the reliable operation of the business.

Developing a network hardware or operating system configuration standard for various infrastructures, whether large or small, presents similar challenges. The main challenge lies in coordinating all security parameters and formulating clear rules for configuring and testing systems such as the Linux operating system, Kubernetes, or cloud services. These settings must be implemented in such a way that they do not interfere with the functioning of the main application. It is important to consider scalability, since a properly developed standard can be adapted for both a small and a large number of servers, which is a key aspect of effective IT infrastructure management.

Approach to Security in Corporations and Small IT Companies

I am an employee of ManyChat, which is an international medium-sized organization. My previous experience working in a large corporation with 70,000 employees allows me to clearly understand the differences in approaches to data security and information management. This contrast in experience helps me make valuable contributions to the security and efficiency of processes at ManyChat.

SaaS companies focus on cloud solutions, internal infrastructure, and business systems. There are numerous cloud-based security solutions on the market that can be quickly implemented. In some cases, they prove more effective and secure than internal systems, thanks to the larger number of users testing and improving these solutions. In addition, SaaS companies emphasize secure code development and analysis, which helps minimize risks and improve the overall security of software products.

Photo: Andrey_Popov / Shutterstock

Large organizations tend to create internal systems, and in exceptional cases, resort to the use of CRED clouds. This approach requires special attention to building security systems. R&D departments are often transferred to subsidiaries or outsourced. Although this trend is gradually fading, development is still not always considered a company's core activity.

Small companies have significantly smaller infrastructure than large corporations. However, both large enterprises and independent SaaS companies can serve hundreds of millions of customers. The contribution of cybersecurity to business processes and the protection of customer data in both cases remains comparable. This underscores the importance of investing in cybersecurity for all types of organizations, regardless of their size.

In smaller companies, the role of security specialists can be significantly more significant than in larger organizations. For example, when Facebook acquired WhatsApp, the company had only 50 employees and used several hundred servers, but they ensured the protection of the data of millions of users. Developing an anti-fraud system in a small business can have the same impact as in large companies, since the effectiveness of customer protection depends on the specifics of the system and its integration into business processes.

Open Source Security Issues - and How to Avoid Them

Nowadays, open source software plays a key role in the development of most products. It is used in a wide variety of areas, including mission-critical and commercial systems. For example, the Chrome browser uses many free libraries and external components. These libraries are interconnected, and the presence of vulnerabilities in one of their elements can affect the security of the entire application. Therefore, it is important to pay attention not only to choosing open source solutions, but also to regularly updating them and checking for possible vulnerabilities.

Security issues with open libraries remain relevant. There are regularly updated lists of "dangerous" Libraries published by vendors dedicated to open-source security. The threats hidden in such libraries can be divided into two main types:

The first type includes vulnerabilities that can be exploited by attackers to target applications or systems using the library data. The second type involves malicious code that can be injected into the library, jeopardizing the security of users and their data.

It is important to stay current with security updates and recommendations to minimize the risks associated with using open-source libraries.

  • Slogans. For example, displaying a message to all users on top of all windows.
  • Sabotage. For example, deleting data when the library detects that it is being downloaded from certain IP addresses.

To make changes to an open-source product, it is enough to make a commit with a few lines of code. However, tracking these changes can be challenging, as most IT solutions today have numerous dependencies on open-source projects. For example, the React library relies on numerous external libraries, as do many other frameworks. This makes dependency and update management a more complex process, requiring a careful approach and close monitoring.

Automated tools for identifying problematic libraries typically operate post-hoc. This means that an issue only becomes noticeable after at least one client has been affected. After receiving a report from a client, services update their databases, develop updates, and apply them to other users. This way, they can prevent the issue from recurring or warn of potential risks associated with updating to the latest version of a particular library. Effective use of these tools helps minimize risks and ensure software security.

Companies that focus on open-source library security have a large customer base and exert significant influence on businesses by promptly informing their subscribers of potential risks. As a result, many organizations are hesitant to update their libraries immediately after new versions are released. They prefer to wait a while—from a week to two—to ensure the security of the updates and minimize potential threats. This anticipation allows companies to make informed decisions, protecting their systems from vulnerabilities.

Updating software without obvious need is becoming a rarity. It's important to understand which specific functionality from a new library version is essential for your project and upgrade only if needed. Often, a more reasonable and secure approach is to examine individual code fragments introduced in the new version. After analyzing them, you can decide whether to integrate them into your code, which will help avoid potential issues and maintain application stability.

Using open-source software can be safe if you follow proper practices. Some experts believe that it is even more secure than proprietary software. This is because the open-source source code is available to everyone, allowing users and developers to identify and fix vulnerabilities. In contrast, proprietary software is created by a specific company, which raises questions about the quality of its vulnerability testing. Therefore, the openness of open-source software can facilitate the faster identification and fixing of security issues.

Even open-source software, developed for decades, can still be vulnerable to serious vulnerabilities. A prime example is the OpenSSL library, which, despite years of development and support from a large developer community, suffered critical vulnerabilities. This case highlights the importance of ongoing code auditing and updating, even in projects with an active community. Security remains a priority in software development, and users should be mindful of such issues, regardless of the project's status.

A poor cybersecurity practice is the approach known as "security by obscurity." This method is based on the concept that system security is achieved by hiding information about its security mechanisms. However, this approach does not provide reliable protection and can lead to vulnerabilities. Effective security must be based on transparent and robust methods that consider potential threats and actively counter them.

When using an operating system without access to the source code, we cannot know exactly how the security mechanisms are implemented. In this context, open source software has clear advantages. However, it is important to remember to follow basic security rules to protect your data and system from potential threats. Using open source solutions allows for deeper control over security, since the code is available for analysis and modification. However, users should follow security best practices, such as regular updates, using strong passwords, and monitoring the system for vulnerabilities. Following these rules will help increase the level of protection and reduce the risks associated with using software.

  • Do not update to the latest version immediately;
  • Do not perform automatic updates;
  • Use software composition analysis tools - such as Snyk, Black Duck, and others.

Read also:

  • Three levels of cybersecurity
  • How to change the stack and get your dream job: game developer Nellie Hwang
  • At the bottom: 4 programming languages ​​on the verge of extinction

The court decided to ban the activities of Meta Platforms Inc. in Russia, concerning the sale of products of the social networks Facebook and Instagram. This decision is based on accusations of extremist activity.