The page has been translated by Gen AI.

Infrastructure Security

Infrastructure Security

Network Security

Network security is considered a core component of overall security not only in cloud environments but also in existing IT environments.

This is because the network controls access to all hosts and is the only technical means that allows unrestricted individuals to access the system and data.

When configuring network control, you must establish precise access policies to block attackers and allow legitimate users to operate normally.

Moreover, because the cloud exists outside the user’s network, i.e., on the Internet, it must be built and operated assuming an Internet connection.

Furthermore, most modern applications are developed based on an internet connection, so the internet connection cannot be excluded.

When you design a network architecture and set policies in the cloud, you must deliberately segment the network spaces and access permissions of each component of the information system you build, and establish clear boundaries.

This segmentation strategy includes networks, users, and resource access, among others.

Network Layering

Best practice
Always isolate the system to a small scope to reduce the blast radius from security incidents, and allow only necessary access to critical data.
Design Principles
  1. All servers are grouped by function, placed in separate subnets, and, except when necessary, are deployed in private subnets.
  2. Minimize points of access to the VPC from the internet to enhance security.
  3. (where important data is stored) the repository is configured to allow access only to the necessary parties.

Areas with high security requirements, such as personal information or confidential data, must be isolated from external and other components and access must be restricted.

Through this, even if unauthorized intrusion occurs in part of the information system, the impact should be minimized as much as possible.

Separate components are grouped by the same security type, and boundaries are set to restrict network access.

Typically, they are grouped into a three-tier architecture of web, application, and database, and the entry point accessed by external networks is configured as a separate boundary.

The following diagram illustrates this three-tier web service architecture.

Diagram
Figure. 3-tier web service architecture
  1. Workload Internet Isolation and Layering In the figure above, subnets were created for Web, Application, and DB. In this architecture, only a Private IP is attached to the entire server for the web service (no Public IP is attached), allowing only private communication without an Internet connection. Each server is grouped as Web Server, Application Server, and DB Server, and placed in separate independent subnets. Create a Bastion Server that can be accessed from outside and perform server management. The administrator establishes a private connection to the Bastion Server via VPN and, through it, performs management tasks on each server.

  2. Minimizing the external attack surface To minimize servers exposed to the Internet, the architecture only opens the Load Balancer to the Internet. Users can access the service only through the Load Balancer’s Public IP.

  3. Repository Access Control The database should be accessible only to applications that require access. According to compliance requirements, if necessary, the Application Server may need to be configured to access the database via an access control server rather than directly. For example, the ISMS (Information Security Management System) regulations require such database access control management as a mandatory condition. Storage manages accessible objects using a White List, thereby constructing an access control list (ACL). The repositories that manage access control lists are File Storage, Object Storage, and Container Registry. (Although not a storage, Kubernetes Cluster also manages access control lists.) The access control list targets include public IP addresses, servers within the account, and VPC endpoints.

Network Traffic Control

Best practice
Apply security to all resources and layers.

Apply strict control rules to traffic transmitted to and from the Samsung Cloud Platform to block security intrusions. To this end, we analyze the connection requirements of each service component, design the network architecture, and establish corresponding traffic control policies.

Network communication control policies may vary depending on the characteristics of the service. Through analysis of service requirements, we identify the network flow and set the criteria for control policies accordingly.

Design Principles
  1. Establish network communication control policies for all resources within the VPC.
  2. Control inbound and outbound traffic through finely (Fine Grained) configured communication control policies.
  3. Configure deep defense that restricts traffic to the necessary ports between components, thereby strengthening the security of the overall traffic flow.
reference

Network Flow Requirements Analysis

When analyzing a service’s connection requirements, you can identify the network flow according to the following categories.

  • External Internet Accessibility Public Subnet: A subnet where Virtual Servers with a Public IP are deployed. As an arbitrary classification, the Virtual Servers in this subnet handle traffic management with the Internet. Private Subnet: A subnet where Virtual Servers are deployed without a Public IP connection. As an arbitrary classification, the Virtual Servers in this subnet are isolated from the Internet.

  • Traffic Direction Constructs traffic direction information based on source IP address, destination IP address, port. Inbound: Traffic entering this component. The recipient IP address becomes the IP address (range) of the server(s) that control the traffic. Outbound: Traffic that leaves this component. The sender IP address becomes the IP address (range) of the server (group) that is intended to control the traffic.

  • Impact Scope North-South: Traffic that flows between the VPC’s external and internal sides, primarily between service users outside the VPC and workloads inside. This zone houses security services (devices) such as firewalls, WAFs, and IPS, which block external attacks and intrusions. East-West: Traffic that flows between components inside a VPC, for example, traffic between the Web Server, Application Server, and DB Server in a three-tier web service. This zone includes devices (Load Balancer, Message Queue Service, etc.) deployed to improve service performance, and a distributed firewall (Security Group) is configured to secure communication between each server group. The Load Balancer of Samsung Cloud Platform can be connected to a Firewall to control communication in this zone.

In Samsung Cloud Platform, the services you can use to control traffic within a VPC are Firewall and Security Group.

A firewall is used to control traffic at the network boundary (North-South), while a security group is used to control server traffic (East-West).

The figure below shows an architecture that implements traffic control for a three-tier web service using a firewall and security groups.

Diagram
Figure. Traffic control configuration for a three-tier web service
  1. The frontmost boundary of North-South traffic is the Internet Gateway, and traffic is controlled by connecting a Firewall. Communications from end users or administrators on the Internet enter the VPC by passing through the Internet Gateway. You can refer to the firewall rules that can be configured on the Intertnet Gateway in the table below. The end user on the Internet accesses the Load Balancer via HTTPS (443) and defines rules as shown in Table 1-1 below. The administrator accesses the Bastion Server via the Internet Gateway Firewall, and this is permitted as described in rule 1-2.

  2. Add a Security Group rule (2-1) on the Bastion server that allows inbound remote access only from the administrator workstation’s IP address, and add an outbound rule (2-2) that applies to all Security Groups attached to servers within the VPC. In the Web Server Security Group (4-3) and Application Server Security Group (6-3), add rules targeting this Bastion server’s Security Group to permit server access for management.

  3. The Web Load Balancer receives user requests from the Internet and distributes them across the back-end Web Servers. The Load Balancer’s public NAT IP acts as a single external entry point on behalf of the back-end servers, preventing unnecessary internet exposure of the Web Server. You can configure network control of outbound traffic by setting up firewall rules on the Load Balancer. If you configure the inbound and outbound ports differently on the Load Balancer, you create a more stringent policy from a network protection standpoint. For example, receive front‑end traffic as HTTPS(443) (3-1) and, after performing SSL Termination on the Load Balancer, send HTTP(80) traffic to the back‑end Application Server (3-2) to change the service flow port. In this case, besides strengthening security by assigning different inbound and outbound ports, you can also expect the benefit of reducing the SSL encryption/decryption processing load on the back-end Web Server. SSL certificates are registered separately in the Certificate Manager for management.

  4. The Web Security Group allows inbound HTTP (80) traffic from the front Load Balancer and outbound traffic sent to the back App Load Balancer (4-1, 4-2).

  5. In the App Load Balancer, configure a firewall rule (5-1) that uses the Web Server address as the source address, the Service IP as the destination address, and allows inbound HTTP (80). Also, change the transmission port to HTTP (8080), add an outbound allow rule directed to the Application Server, and then change the port again. (5-2)

  6. In the Application Server Security Group, a rule (6-1) that allows inbound HTTP (8080) traffic received from the App Load Balancer and Configure rule (6-2) that allows outbound traffic on port 2866 to the DB server. At this point, port 2866 is the default port used by the Samsung Cloud Platform Database service, and the service flow’s port was also changed here.

  7. The Database is configured with rules that allow inbound and outbound traffic on port 2866 targeting the preceding Application Server Security Group, and permit communication between databases. (7-1, 7-2)

Deep defense is a concept that creates multiple layers of security controls so that even if defense fails at one layer, attackers are blocked by other layers positioned behind it.

Efforts to construct defense layers in a nested fashion ultimately begin with acknowledging that we cannot know which vulnerability an attacker will exploit and that we may fail in our defense.

The purpose of defense in depth is to use firewalls and security groups to assign different inbound and outbound ports for each layer, ultimately preventing intruders from reaching the database that stores critical information.

The Security Group of Samsung Cloud Platform can include not only specific address ranges (such as CIDR) but also other Security Groups as allowed targets.

When you set a Security Group as an allowed target, you can designate all Virtual Servers attached to that Security Group as allowed communication targets, which eliminates the need to specify address ranges when applying Auto-Scaling or similar to a tier.

The following table is a diagram summarizing the rules described above.

NumberservicedirectionOrigin address/remoteDestination address/remoteProtocol/PortOperation
1-1Internet Gateway
Firewall
Inbound0.0.0.0/0
(Internet)
Web Load Balancer Service IPHTTPS(443)Allow
1-2Internet Gateway
Firewall
InboundAdministrator’s
Public IP
Bastion Server IPRDP/SSH(3389/22)Allow
2-1Bastion Server
Security Group
InboundAdministrator’s
Public IP
-RDP/SSH(3389/22)-
2-2Bastion Server
Security Group
Outbound-All Security GroupsRDP/SSH(3389/22)-
3-1Web
Load Balancer
Firewall
Inbound0.0.0.0/0
(Internet)
Web LB Service IPHTTPS(443)Allow
3-2Web
Load Balancer
Firewall
OutboundWeb LB Service IPWeb VM IP(band)HTTP(80)Allow
4-1Web Server
Security Group
InboundWeb LB
Source NAT IP
-HTTP(80)-
4-2Web Server
Security Group
Outbound-App LB Service IPHTTP(8080)-
4-3Web Server
Security Group
InboundBastion Server Security Group-RDP/SSH(3389/22)-
5-1App
Load Balancer
Firewall
InboundWeb VM IP(band)App LB Service IPHTTP(80)Allow
5-2App
Load Balancer
Firewall
OutboundApp LB Service IPApplication VM IP(band)HTTP(8080)Allow
6-1Application Server
Security Group
InboundApp LB
Source NAT IP
-HTTP(8080)-
6-2Application Server
Security Group
Outbound-DB Security Group2866-
6-3Application Server
Security Group
InboundBastion Server Security Group-RDP/SSH(3389/22)-
7-1DB Server
Security Group
InboundApplication Server Security Group,
DB Security Group
-2866-
7-2DB Server
Security Group
Outbound-Application Server Security Group,
DB Security Group
2866-

*In this configuration, the rule setting for health checks of Load Balancer server group members is not included.

Table. Example of 3-tier web service Firewall and Security Group settings for deep defense

Network Traffic Filtering

Best practice
Enhance security by using managed security services.

Samsung Cloud Platform provides a variety of managed security services.

The user only needs to request the service through SR.

When using a managed security service, you can delegate equipment management tasks and inspections, allowing you to protect workloads easily and securely.

Design Principles
  1. Deploy the Secure Internet Gateway and request a managed security service.
  2. Use appropriate security services in accordance with compliance requirements.

The following diagram shows a three-tier web service architecture that strengthens security by deploying managed security services.

Diagram
Figure 3 Layered Web Service Managed Security Service

The following table describes the features of the managed security services provided by Samsung Cloud Platform and the types of attacks they can defend against.

Security ServicefunctionRelated infringement types
Secured FirewallLayer 4 traffic controlUnauthorized access, IP scanning, etc.
WAFDefending against HTTP/HTTPS-based security threats targeting website vulnerabilities and automated bot attacksInjection, XSS (Cross-Site Scripting), Web Scan, etc.
DDoS ProtectionDetection/defense of DDoS attacks that generate massive traffic intensively, causing service disruptionsDDoS attack
IPSMonitor traffic suspected of being malicious and application manipulation patterns.Hacking attack detection
Table. Samsung Cloud Platform Security Service

Server Security

Vulnerability Assessment and Remediation

A vulnerability refers to a weakness in a system that an attacker can exploit to lower the security level of an information system.

An attacker exploits a vulnerability to gain system privileges or exfiltrate sensitive information.

Server vulnerability assessment is the process of verifying whether the security settings of a virtual server’s operating system have been properly applied.

Best practice
Periodically check known operating system vulnerabilities and apply the latest patches.

Samsung Cloud Platform offers five Linux variants and the Windows Server operating system.

The vulnerabilities of the application cannot be completely eliminated, but strengthening the security of the operating system, file system, and other components can limit system attacks.

Strengthening directory access and imposing restrictions at the process level to prevent attacks, setting file and folder permissions, creating separate directories for required access only, avoiding shared access, and automating application restarts are necessary.

Design Principles
We regularly inspect security vulnerabilities in the server operating system and applications.

Applying the latest security patches is important, and following OWASP’s secure coding best practices is recommended.

When needed, we support applying security patches and monitoring via tools, and we use automation tools.

The following are the server security management items that need to be checked regularly.

Management itemsManagement details
Operating system name, versionManagement of operating system vendor’s technical support period (End of Support)
Platform, middleware SW name, versionWeb servers, database servers, queues, and other software for vulnerability management purposes.
User Application codeAll custom Application code running in the organization
IP address, subnet, and other network informationServer IP address, VPC, subnet, and other network asset information
User, authentication Key Pairusers authorized to access the operating system, Key Pair,
users authorized to access the platform/middleware/application
Table. Server security management items

In a container environment, the Container Registry provides a tool that can assess vulnerabilities in stored container images.

Container Registry provides a tool that can scan for vulnerabilities in stored Container Images.

Provisioning Management

When provisioning a virtual server or container, you must deploy using a secure image that has had security vulnerabilities addressed.

Since a Virtual Server can be redeployed using an image, you need to manage server images with the latest updates separately.

Also, when launching a server using an image, ensure that the latest patches are applied automatically.

Best practice
Provision a hardened server/container image with the latest security updates applied.

By provisioning with hardened standard images in a computing environment, you can provide a more secure baseline environment.

Through this, resources can be operated without unnecessary software packages or potential vulnerabilities, minimizing the risk of unintended intrusion from external sources.

In particular, the process of retrieving external dependencies such as container images and Application libraries only from trusted registries and verifying their signatures is extremely important.

This signature verification process is an effective way to ensure that software obtained from external sources has not been tampered with or contains malicious code.

Additionally, building your own private registry and storing trusted images and libraries is also one of the important security procedures.

A private registry provides an environment where secure images can be referenced during the build and deployment processes, acting as a barrier that prevents unintended access from external sources.

In a private registry, you can respond to new vulnerabilities through regular scans and updates, thereby continuously maintaining a secure environment.

Design Principles
  1. Manage the latest operating system images with the latest security updates applied, and automate the execution of the latest updates when the server starts after provisioning.
  2. When deploying containers, automate vulnerability scanning in the CI/CD pipeline.

However, even if you pull images from a trusted registry, security risks still exist if you do not verify signatures or perform vulnerability scans before using them.

Also, even if you harden the image, failing to regularly test for new vulnerabilities or update to the latest version can cause the security of the hardened image to gradually degrade.

Relying solely on patches to keep computing resources up to date can also be problematic.

Over time, relying solely on patches may deviate from the hardened baseline, or situations may arise where malware installed by threat actors during security events cannot be removed.

Therefore, regular image hardening, signature verification, vulnerability scanning, and updates are essential.

Access Control

Best practice
By using a key pair, we directly manage server access, minimizing the number of administrators.

The Virtual Server of Samsung Cloud Platform is accessed via a Key Pair.

A key pair can be downloaded only once when it is created.