exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 98 discussion

Actual exam question from CompTIA's CAS-004
Question #: 98
Topic #: 1
[All CAS-004 Questions]

A security engineer is hardening a company's multihomed SFTP server. When scanning a public-facing network interface, the engineer finds the following ports are open:

✑ 25
✑ 110
✑ 137
✑ 138
✑ 139
✑ 445
Internal Windows clients are used to transferring files to the server to stage them for customer download as part of the company's distribution process.
Which of the following would be the BEST solution to harden the system?

  • A. Close ports 110, 138, and 139. Bind ports 22, 25, and 137 to only the internal interface.
  • B. Close ports 25 and 110. Bind ports 137, 138, 139, and 445 to only the internal interface.
  • C. Close ports 22 and 139. Bind ports 137, 138, and 445 to only the internal interface.
  • D. Close ports 22, 137, and 138. Bind ports 110 and 445 to only the internal interface.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
user009
Highly Voted 2 years, 3 months ago
B. Close ports 25 and 110. Bind ports 137, 138, 139, and 445 to only the internal interface. This option is the best solution to harden the system. By closing ports 25 (SMTP) and 110 (POP3), the engineer eliminates unnecessary email-related services on the SFTP server. Binding ports 137, 138, 139 (NetBIOS and SMB-related services), and 445 (SMB over TCP) to only the internal interface ensures that these services are only accessible internally, reducing the attack surface on the public-facing network interface.
upvoted 11 times
...
Mr_BuCk3th34D
Highly Voted 2 years, 6 months ago
Selected Answer: B
The engineer should close any unnecessary ports, such as port 25 (SMTP) and port 110 (POP3), which are not used by the SFTP server. The SFTP server uses port 22 for secure file transfers, so this port should be left open. The engineer should also bind port 22 to only the internal interface, so that it is not accessible from the public internet. The engineer should also bind ports 137, 138, 139, and 445 to only the internal interface. These ports are used for various networking protocols, such as NetBIOS and SMB, and are not needed for the SFTP server. By binding these ports to only the internal interface, the engineer can further harden the system and prevent external access to these services
upvoted 7 times
...
23169fd
Most Recent 11 months, 3 weeks ago
Selected Answer: B
Close Ports 25 and 110: These ports are not needed for SFTP operations. Closing them reduces the attack surface. Bind Ports 137, 138, 139, and 445 to the Internal Interface: These ports are used for internal Windows file-sharing operations. By binding them only to the internal interface, you ensure they are not exposed to the public-facing network, thus improving security.
upvoted 2 times
...
hb0011
1 year, 5 months ago
Port 22 is not even listed...
upvoted 5 times
...
OdinAtlasSteel
1 year, 7 months ago
Selected Answer: A
A. Close ports 110, 138, and 139. Bind ports 22, 25, and 137 to only the internal interface. Closing unnecessary ports (110, 138, and 139) reduces the attack surface. Binding essential ports (22, 25, and 137) to the internal interface maintains necessary services for SFTP (22) and potentially other services. B. Close ports 25 and 110. Bind ports 137, 138, 139, and 445 to only the internal interface. Closes some potentially less secure ports but includes binding port 445 (commonly used for Windows SMB) exclusively to the internal interface.
upvoted 1 times
...
BiteSize
1 year, 11 months ago
Selected Answer: B
Source: Verifying each answer against Chat GPT, my experience, other test banks, a written book, and weighing in the discussion from all users to create a 100% accurate guide for myself before I take the exam. (It isn't easy because of the time needed, but it is doing my diligence)
upvoted 1 times
...
mikey17
2 years, 2 months ago
Answer is A.
upvoted 1 times
...
add93
2 years, 6 months ago
I can see why it is A, this is a staging site, customers do not need to access the site from the front end. Closing the port publicly makes sense. now if it stated that customers directly access this from the outside, I might think it is B.
upvoted 1 times
add93
2 years, 6 months ago
Developers like to do Staging > Public Download server. since controls for a download server can be in place, like attestation or TLS 1.2\1,3 encryption. SFTP on a public facing interface sounds poor, unless you are already doing SFTP on a secured network.
upvoted 1 times
...
...
lordguck
2 years, 7 months ago
B: SSH hast to be open at least on the external side and 139/445 (one or both) are needed on the internal side
upvoted 1 times
...
dangerelchulo
2 years, 9 months ago
Selected Answer: B
B is the only option that does not restrict external usage of SFTP making it the only valid answer.
upvoted 1 times
...
AlexJacobson
2 years, 11 months ago
Selected Answer: B
SFTP uses 22 and it needs to be seen by the internet (public). "Internal Windows clients transferring files" translates to "we need SMB (445) running" - so 445 needs to be bind to the internal interface. Ports 25 and 110 relates to mail service and we don't need that at all, so close them.
upvoted 3 times
romero318
2 years, 10 months ago
nvm I think i understand why you said B. That is only for internal and your saying that 22 needs to be seen by the public so I understand. You really have to read things closely with comptia.
upvoted 1 times
ukuwai
2 years, 10 months ago
as they want to test our reading skills (eng 101) too
upvoted 2 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...