Best practices for keeping the web server data protected

前端 未结 5 973
不思量自难忘°
不思量自难忘° 2021-02-02 00:37

Lets say I run a medical facility and want a website where my users/patients can lookup their private records. What would be the best solution

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-02 01:19

    Your question is What are the best practices for such architecture?

    I like this article from Microsoft Security Best Practices to Protect Internet Facing Web Servers, which has had 11 revisions. Granted some of it is Microsoft-platform specific, a lot of the concepts you can apply to a platform-independent solution.

    1. Identify the network flow, in terms of requests: if you know the regular network flow the server is supposed to receive and send, then you can allow and check (content/requests inspection) them, while other traffic/flow would be denied by default (by Firewall). This is a network isolation measure, that will reduce the risk of a malware spread (or a successful intrusion getting deeper into the production network)
    2. Make sure your DMZ has no possibility to directly access your LAN with "source to any" or "source to many"-like rule (firewall/routers rules to be double-checked).
    3. Make sure there is no way to directly request your web server, bypassing security filtering layers. There should be at least a 3-layers filter for your web server:
      1. Protocols and sources acccepted: firewall (and routers).
      2. Dynamic network traffic inspection: NIPS (Network Intrusion Protection System) that will detect/block malicious network requests. You might want to have a look at the MAPP to find a Microsoft partner (www.microsoft.com/security/mapp/ This link is external to TechNet Wiki. It will open in a new window. ). Please also keep in mind that NIDS will only aim to detect, not block, the malicious traffic (contrary to NIPS), but in the other hand they will not create any denial of service risk for business flows.
      3. Application-oriented security: WAF (Web Application Firewall), just next to the web app/site, that will allow to harden the requests control, and tighten the filter to match the specificities of the web application. ModSecurity for IIS7 (see: http://www.modsecurity.org/ This link is external to TechNet Wiki. It will open in a new window. ) is an example of a tool that can be used for robust audit logging of HTTP(S) transactions and virtual patching of identified vulnerabilities. Along with the bundled OWASP ModSecurity Core Rule Set (CRS), it offers essential protections against application layer attacks and information leakages.
    4. Make sure that clients can't directly send requests to your server (from a TCP point of view), that could facilitate attacks otherwise. Thus ensure network isolation, DMZ-minded, by deploying a reverse proxy as a front-end of the web server. This will allow to more easily manage the network flow that can legitimately be sent to the server (including other needs like load balancing). Forefront UAG could be an example of such a solution, or any other one from the MAPP program. Note that some reverse proxies may offer advanced security features.
    5. Follow security best practices for ASP.Net code, to protect against code injection: http://msdn.microsoft.com/en-us/magazine/hh580736.aspx This link is external to TechNet Wiki. It will open in a new window. and SQL injection: http://msdn.microsoft.com/en-us/library/ms161953(SQL.105).aspx This link is external to TechNet Wiki. It will open in a new window. . From a more global point of view, please refer to SDL: http://msdn.microsoft.com/en-us/security/aa570401.aspx This link is external to TechNet Wiki. It will open in a new window. . Audit the hosted code on a regular basis.
    6. Harden cyphered network communications as much as possible, taking into account the available implementations of SSL/TLS on the Windows systems you are running: http://blogs.msdn.com/b/benjaminperkins/archive/2011/10/07/secure-channel-compatibility-support-with-ssl-and-tls.aspx This link is external to TechNet Wiki. It will open in a new window. . By default, our recommandation is TLS 1.1/1.2. Please keep in mind this has to be enabled on both client and server side.
    7. Make sure that the machines within the DMZ are not joined to the regular production domain. AD isolation is at forest layer, therefore it is highly recommended not to have the production AD in DMZ. Please either use another forest, or deploy AD Lightweight Directory Services.
    8. Implement white/blacklisting of applications, through AppLocker for example: http://technet.microsoft.com/en-us/library/ee791890(v=ws.10).aspx This link is external to TechNet Wiki. It will open in a new window.
    9. Make sure you have got all the relevant (and required?) traceability chain: this meaning possible correlation between firewall's, reverse-proxy's, and web server's logs. Please make attention not to only enable "errors" logging, for instance in IIS logs. Last, please consider archiving the logs.
    10. Create a back-up of web server data, on a regular basis.
    11. Create images of systems, in an integer state, on a regular basis (at least, at deployment time). This may be helpful in case of a security incident, both to return to production mode as quick as possible, and also to investigate.
    12. Audit your equipments: firewall rules, NIPS rules, WAF rules, reverse-proxy settings, on a regular basis.
    13. Follow security best practices for application layer products, database layer ones, and web server layer.

    reference: http://social.technet.microsoft.com/wiki/contents/articles/13974.security-best-practices-to-protect-internet-facing-web-servers.aspx

提交回复
热议问题