<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>DB SECURITY by Emmanuel Freeman</title>
      <link>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso</link>
      <description>Question: What are the most common security threats to a DBMS, and how can they be mitigated?

Question: How do you implement user authentication and authorization in a DBMS to ensure data security?

Question: What best practices should be followed for database encryption, both at rest and in transit?

Question: How do you set up regular backups and disaster recovery plans to ensure the integrity and availability of the database?</description>
      <language>en-us</language>
      <pubDate>2024-06-03 14:31:40 UTC</pubDate>
      <lastBuildDate>2024-08-11 19:15:59 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/8.0/png/1f4e1.png</url>
      </image>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072450929</link>
         <description><![CDATA[<p>Interesting.</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-11 12:53:11 UTC</pubDate>
         <guid>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072450929</guid>
      </item>
      <item>
         <title></title>
         <author>dziedzorm12</author>
         <link>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072457403</link>
         <description><![CDATA[<p><strong><mark>ROOM 2 </mark></strong></p><p>Bernice Quartey-Papafio: 1706099628</p><p>Aloysius Akagre: 1701859604</p><p>Maxwell Adapoe: 1704825087</p><p>Jethro Kpormorne Akorley: 1706556011</p><p>Godson Dei: 1704825847</p><p>Richmond Larbi Adu: 1704291292<br></p><p><br/></p><p>Question: What are the most common security threats to a DBMS, and how can they be mitigated?</p><p><br/></p><ol><li><p>SQL Injections</p></li></ol><p>Using prepared statements when developing services. Restricting privileges and access to user profiles used in services. </p><p><br/></p><ol start="2"><li><p>Weak credentials / sever misconfigurations: Common/ default passwords should not be used when configuring or setting up database services. Also, you can set up multifactor authentication </p></li></ol><p><br/></p><ol start="3"><li><p>DoS/ DDoS  attacks: Blocking malicious IP addresses, implementing a load balancer, disabling access to unused ports, protocols, and applications.</p></li><li><p>Insider threats: Employee training, access control, i.e: restriction of privileges. Enforcing strict authentication and authorization policies</p></li><li><p>Virus &amp; Malware: Backing up data and testing restore procedures. Firewalls and network security policies should also be put in place. Avoid opening suspicious files from untrustworthy sources,  especially on database production servers. </p></li></ol><p><br/></p><p><br/></p><p><strong>How do you implement user authentication and authorization in a DBMS to ensure data security?</strong></p><p><br/></p><ol><li><p><strong>Username and Password</strong>: Users must have a username and password, which must be stores securely and encrypted.</p><p><br/></p></li><li><p><strong>Multi-Factor Authentication (MFA) and Token-Based Authentication</strong>: Enhance security by requiring additional verification methods, such as a code sent to a user’s phone or email. Implement tokens that are issued upon successful login and used for subsequent requests When connecting to the database server.</p><p><br/></p></li><li><p><strong>Role-Based Access Control </strong>: Assign roles to users and define permissions for each role.</p><p><br/></p></li></ol><p><br/></p><p><strong>What best practices should be followed for database encryption, both at rest and in transit? </strong></p><p><br/></p><ol><li><p>Disk encryption: Ensuring that disks on which databases are stored are fully and well encrypted.</p></li></ol><p><br/></p><ol start="2"><li><p>Sensitive Data such as passwords should be encrypted and not kept in plain text format.</p></li></ol><p><br/></p><p><br/></p><ol start="3"><li><p>Use firewalls (<strong>Network Security</strong> measures) and setup other access control methods to restrict access to encrypted data on databases. </p></li></ol><p><br/></p><ol start="4"><li><p>Use strong encryption  algorithms: Employ robust encryption algorithms like AES-256 to encrypt data stored in the database.</p></li></ol><p><br/></p><ol start="5"><li><p>Backup Encryption: Encrypt database backups to protect data in case of unauthorized access or theft.</p></li></ol><p><br/></p><p><br/></p><p><br/></p><p><strong>How do you set up regular backups and disaster recovery plans to ensure the integrity and availability of the database?</strong></p><p><br/></p><ol><li><p>Store backup in separate locations to avoid physical damage and theft. Replications should also be done across multiple sites/ locations</p></li></ol><p><br/></p><ol start="2"><li><p>Have a backup schedule. Set a data/ time for which you back up your database </p></li></ol><p><br/></p><ol start="3"><li><p>Use automated backup tools like window's scheduler/ Cron jobs to ensure backups are performed regularly </p></li></ol><p><br/></p><ol start="4"><li><p>Test your backups/ disaster recovery measures to be sure they work.</p></li></ol><p><br/></p><p><br/></p><p> </p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-11 13:11:50 UTC</pubDate>
         <guid>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072457403</guid>
      </item>
      <item>
         <title></title>
         <author>tbautoresponder</author>
         <link>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072457810</link>
         <description><![CDATA[<p><strong>Room 1</strong></p><p><br/></p><p>Group Members</p><ul><li><p>Emmanuel Akpakli - 1707923484</p></li><li><p>Richard Adobau - 1704982027</p></li><li><p>Kwesi Brew Ammuako-Annan - 1702039244</p></li><li><p>Wonder Kwaku Susuassey - 1703248512</p></li><li><p>Kwaku Mathias - 1704815508</p></li><li><p>Kwabena Aboagye Dougan - 1708882463</p></li></ul><p><br/></p><p><strong>Question 1: What are the most common security threats to a DBMS, and how can they be mitigated?</strong></p><p><br/></p><ol><li><p>SQL Injection</p><ul><li><p><em>What it is:</em> This is when attackers can inject malicious SQL queries into an application’s input fields, potentially gaining unauthorized access or compromising the database.</p></li></ul><ul><li><p><em>Solution</em>: Implement input validation to ensure that only expected data types and formats are accepted.</p></li></ul></li><li><p>Insider Threats</p><ul><li><p><em>What it is:</em> These the Malicious insiders or careless employees may compromise database security.</p></li><li><p><em>Solution</em>: Monitor user activity and implement anomaly detection to identify unusual behavior. Also regularly update and enforce security policies, including employee background checks.</p></li></ul></li><li><p>User Access Control</p><ul><li><p><em>What it is</em>:  This is when unauthorized users may gain access to the DBMS, leading to data theft, manipulation, or destruction.</p></li><li><p><em>Solution</em>: Use role-based access control (RBAC) to ensure that users have only the permissions necessary for their roles.</p></li></ul></li><li><p>Denial of Service Attack (DOS)</p><ul><li><p><em>What it is</em>: This is when attackers flood the DBMS with excessive requests, causing it to become unavailable.</p></li><li><p><em>Solution</em>: Implement a control to limit the number of requests from a single source.</p></li></ul></li><li><p>Backup Exposure Threat</p><ul><li><p><em>What it is:</em> Backups can be a target for attackers if not properly secured, leading to potential data breaches.</p></li><li><p><em>Solution</em>: Encrypt backups files and store them in secure locations with limited access to the storage locations.</p></li></ul></li><li><p>Outdated DBMS </p><ul><li><p><em>What it is</em>: Malicious users are most likely to attack DB systems that are not regularly updated or patched.</p></li><li><p><em>Solution</em>: Regularly update and patch the DBMS to protect against known vulnerabilities.</p></li></ul></li><li><p>Poor Physical Security</p><ul><li><p><em>What it is</em>: This can pose a significant threat to a DBMS, if unauthorized individuals gain physical access to the database servers or workstations.</p></li><li><p><em>Solution</em>: Use key cards, biometric systems or security guards to enforce limited access to database servers </p></li></ul></li></ol><p><br/></p><p><br/></p><p><strong>Question 2: How do you implement user authentication and authorization in a DBMS to ensure data security?</strong></p><p><br/></p><p><strong>User Authentication</strong></p><ol><li><p>Using email address and strong passwords. </p></li><li><p>Using multi-factor authentication that adds an extra layer of security to user authentication. This significantly reduces the risk of unauthorized access.</p><p><br/></p></li></ol><p><strong>User Authorization</strong></p><ol><li><p>Implement role-Based Access Control (RBAC) that assigns permissions to user roles rather than individual users. Users should be assigned roles based on their job functions.</p></li><li><p>Using Database View to restrict access to specific columns or rows within a table, allowing users to see only the data relevant to them.</p></li></ol><p><br/></p><p><br/></p><p><strong>Question 3: What best practices should be followed for database encryption, both at rest and in transit?</strong></p><p><br/></p><p><strong>Best practices for Database Encryption at Rest</strong></p><ol><li><p>Implement data masking techniques to hide sensitive data in non-production environments.</p></li><li><p>Using strong, industry-standard encryption algorithms like AES-256 for encrypting data. Especially all sensitive data, including personal information, financial data, and passwords.</p><p><br/></p></li></ol><p><strong>Best practices for Database Encryption in Transit</strong></p><ol><li><p>Using HTTPS with Transport Layer Security (TLS) or Secure Sockets Layer (SSL) to encrypt all communications between clients and the database server.</p></li><li><p>Using valid and trusted SSL/TLS certificates to establish secure connections.</p></li></ol><p><br/></p><p><br/></p><p><strong>Question 4: How do you set up regular backups and disaster recovery plans to ensure the integrity and availability of the database?</strong></p><p><br/></p><ul><li><p>This can be done by first establishing a clear database backup and disaster recovery strategy. </p></li><li><p>Use database management tools or scripts to automate the backup process, reducing the risk of human error and ensuring consistency.</p></li><li><p>Encrypt backup files to protect sensitive data from unauthorized access, especially for offsite storage. Usually, it is best to store backups both onsite for quick recovery and offsite (e.g., using cloud storage like AWS EFS) to protect against physical disasters like fire or theft.</p></li><li><p>Periodically restore data from backups to verify that the backup process is working correctly, and the data is intact.</p></li></ul><p><br/></p><p><br/></p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-11 13:13:17 UTC</pubDate>
         <guid>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072457810</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072463022</link>
         <description><![CDATA[<p>Group 3:</p><p>Emmanuel Frimpong Asante: 1693209318</p><p>Daniel Adjei: 1704814068</p><p>Antoine Dzisam: 1704477447</p><p>Kelvin Markus Oppong: 1708435174</p><p>Fortunate:  </p><p>Bonthaly Tituari: 1699272955</p><p><br/></p><p>Question 1:</p><ol><li><p>SQL Injection</p><ol><li><p>Sanitization of forms</p></li><li><p>proper validation of forms</p></li><li><p>Filtering input characters to escape SQL special characters</p></li></ol></li><li><p>Data breaches </p><ol><li><p>encryption</p></li><li><p>Access Controls</p></li></ol></li><li><p>Theft &amp; Fraud eg phishing</p><ol><li><p>audit logging, </p></li><li><p>authentication (2-factor)</p></li></ol></li><li><p>Denial of Service</p><ol><li><p>limit requests eg. 100 requests within a certain time frame </p></li><li><p>Network-level protection</p></li><li><p>backup systems and load-balancing</p></li></ol></li></ol><p><br/></p><p>Question 2</p><ol><li><p>User accounts &amp; Access control - giving access - authentication</p><ol><li><p>strong password policy</p></li><li><p>implementing login &amp; sign ups</p></li></ol></li><li><p>Audits</p><ol><li><p>keeping log of user account activities eg password changes and activity</p></li></ol></li><li><p>2-factor authentication</p></li><li><p>Implement Views for access control</p><p><br/></p><p>Question 3</p><ol><li><p>Encryption key rotation</p><ol><li><p>regularly changing them to minimize compromise</p></li></ol></li><li><p>Network-level security</p><ol><li><p>For database in transit - using SSL, TLS, SSH, VPN</p></li></ol></li><li><p>Keys should be separate from data in transit to prevent compromise from man-in-middle attacks.</p></li><li><p>Monitoring and Auditing of network and database for compromise of encryption or attempts at hacking encryption.</p></li></ol><p><br/></p><p>Question 4</p><ol><li><p>Automated backups by scripting or turning on administrative backup controls.</p></li><li><p>Writing and Implementing policies for backups and disaster recovery</p></li><li><p>User training on regular backups and Disaster recovery steps</p></li><li><p>Introduction of distributed cloud backup strategy. Synchronization of databases across the cloud.</p><p><br/></p></li></ol></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-11 13:29:13 UTC</pubDate>
         <guid>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072463022</guid>
      </item>
      <item>
         <title></title>
         <author>justiceqwame</author>
         <link>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072490325</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2641369971/102bcc291eb8f7536af94b95d5717c9d/DBMS_ROOM_5.docx" />
         <pubDate>2024-08-11 14:39:38 UTC</pubDate>
         <guid>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072490325</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072563456</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2641380914/0e3188266b8adcda7b3fe078715851b5/DB_SECURITY_BREAKOUT_ROOM_4.docx" />
         <pubDate>2024-08-11 19:15:59 UTC</pubDate>
         <guid>https://padlet.com/kofiakorabeng/lqc6vvvzutddqyso/wish/3072563456</guid>
      </item>
   </channel>
</rss>
