Tuesday, 12 September 2017

CompTIA CAS-002 Question Answer

A developer has implemented a piece of client-side JavaScript code to sanitize a user's provided input to a web page login screen. The code ensures that only the upper case and lower case letters are entered in the username field, and that only a 6-digit PIN is entered in the password field. A security administrator is
concerned with the following web server log: - [02/Mar/2014:06:13:04] "GET /site/script.php?user=admin&pass=pass%20or %201=1 HTTP/1.1" 200 5724
Given this log, which of the following is the security administrator concerned with and which fix should be implemented by the developer?

A. The security administrator is concerned with nonprintable characters being used to gain administrative access, and the developer should strip all nonprintable characters.
B. The security administrator is concerned with XSS, and the developer should normalize Unicode characters on the browser side.
C. The security administrator is concerned with SQL injection, and the developer should implement server side input validation.
D. The security administrator is concerned that someone may log on as the administrator, and the developer should ensure strong passwords are enforced.

Answer: C

The security administrator finds unauthorized tables and records, which were not present before, on a Linux database server. The database server communicates only with one web server, which connects to the database server via an account with SELECT only privileges. Web server logs show the following: - [08/Mar/2014:10:54:04] "GET calendar.php?create%20table%20hidden HTTP/1.1" 200 5724 - [08/Mar/2014:10:54:05] "GET ../../../root/.bash_history HTTP/1.1" 200 5724 - [08/Mar/2014:10:54:04] "GET index.php?
user=<script>Create</script> HTTP/1.1" 200 5724
The security administrator also inspects the following file system locations on the database server using the command `ls -al /root'
drwxrwxrwx 11 root root 4096 Sep 28 22:45 .
drwxr-xr-x 25 root root 4096 Mar 8 09:30 ..
-rws------ 25 root root 4096 Mar 8 09:30 .bash_history -rw------- 25 root root 4096 Mar 8 09:30 .bash_history -rw------- 25 root root 4096 Mar 8 09:30 .profile
-rw------- 25 root root 4096 Mar 8 09:30 .ssh
Which of the following attacks was used to compromise the database server and what can the security administrator implement to detect such attacks in the future?
(Select TWO).

A. Privilege escalation
B. Brute force attack
C. SQL injection
D. Cross-site scripting
E. Using input validation, ensure the following characters are sanitized: <>
F. Update crontab with: find / \( -perm -4000 \) type f print0 | xargs -0 ls l | email.sh
G. Implement the following PHP directive: $clean_user_input = addslashes($user_input)
H. Set an account lockout policy

Answer: AF

Monday, 12 June 2017

CompTIA CAS-002 Question Answer

A security administrator is shown the following log excerpt from a Unix system:

2013 Oct 10 07:14:57 web14 sshd[1632]: Failed password for root from port 37914 ssh2
2013 Oct 10 07:14:57 web14 sshd[1635]: Failed password for root from port 37915 ssh2
2013 Oct 10 07:14:58 web14 sshd[1638]: Failed password for root from port 37916 ssh2
2013 Oct 10 07:15:59 web14 sshd[1640]: Failed password for root from port 37918 ssh2
2013 Oct 10 07:16:00 web14 sshd[1641]: Failed password for root from port 37920 ssh2
2013 Oct 10 07:16:00 web14 sshd[1642]: Successful login for root from port 37924 ssh2
Which of the following is the MOST likely explanation of what is occurring and the BEST immediate response? (Select TWO).

A. An authorized administrator has logged into the root account remotely.
B. The administrator should disable remote root logins.
C. Isolate the system immediately and begin forensic analysis on the host.
D. A remote attacker has compromised the root account using a buffer overflow in sshd.
E. A remote attacker has guessed the root password using a dictionary attack.
F. Use iptables to immediately DROP connections from the IP
G. A remote attacker has compromised the private key of the root account.
H. Change the root password immediately to a password not found in a dictionary.

Answer: CE

A security administrator wants to prevent sensitive data residing on corporate laptops and desktops from leaking outside of the corporate network. The company has already implemented full-disk encryption and has disabled all peripheral devices on its desktops and laptops. Which of the following additional controls MUST be implemented to minimize the risk of data leakage? (Select TWO).

A. A full-system backup should be implemented to a third-party provider with strong encryption for data in transit.
B. A DLP gateway should be installed at the company border.
C. Strong authentication should be implemented via external biometric devices.
D. Full-tunnel VPN should be required for all network communication.
E. Full-drive file hashing should be implemented with hashes stored on separate storage.
F. Split-tunnel VPN should be enforced when transferring sensitive data.

Answer: BD

Monday, 8 May 2017

U.S. IT Sector Employment Reverses Course, Sheds 3,000 Jobs In April, CompTIA Analysis Finds

Employment growth in the US information technology (IT) sector stagnated in April, as employment fell by an estimated 3,000 positions, according to CompTIA IT Employment Tracker released today by the association World leader in technology.

April job losses in telecoms (up to 5,300 jobs) and manufacturing of computers and electronic products (minus 1,700 jobs) offset gains in other employment categories, CompTIA's analysis of the current Bureau of Labor Statistics revealed.

IT services and customer software design marked the categories with job growth in April with the addition of 2,600 positions. Other information services, including service portals (+800) and data processing, hosting and related services (+600) also posted employment gains last month.

During the year, employment growth in the IT sector remained in a positive territory, an estimated 49,000 jobs to approximately 4.4 million workers. The category of software and IT services has been the strongest in 2017, totaling 84,200 jobs. The biggest decrease has occurred in telecommunications, which has lost 28,200 jobs so far this year.

"Despite slow IT job growth over the past three months, conditions remain favorable for long-term employment gains," said Tim Herbert, senior vice president of research and market intelligence at CompTIA. "The industries of the United States economy continue to increase their dependence on digital technology and services, which augurs well for employment gains among these segments of workers."

The second component of the nation's workforce - IT occupations in all other industries - grew by an estimated 90,000 jobs in April, spending three months of declines.

Jobs for the central IT positions were basically flat in April. Software developers are still the most active occupation.