10招步骤保护IIS服务器安全

简介:
问题
IIS Internet Information Server )是黑客特别喜欢的目标。因此,对于管理 IIS 网页服务器的管理员来说,确保服务器安全是一件至关重要的事。 IIS 4.0 IIS 5.0 的默认值安装尤其容易受到攻击。
解决方案
采取下面的 10 个步骤来确保 IIS 的安全:
1.       专门为 IIS 应用和数据设置一个 NTFS 磁盘驱动器。如果可能的话,不允许 IUSER (或者无论什么匿名用户)存取任何其它的磁盘驱动器。如果应用遇到任何由于匿名用户没有权限存取位于其它磁盘驱动器上的程序而造成的问题,那么,使用 Sysinternals FileMon 来寻找哪一个档案该用户不能存取,然后把该程序移至 IIS 磁盘驱动器上。如果这样不可行的话,则允许 IUSER 仅可存取该档案。
  1. 设置磁盘驱动器上的NTFS权限:
Developers = Full
IUSER = Read and execute only
System and admin = Full
  1. 使用一个软件防火墙确保没有终端用户(只有研发人员)可以存取IIS机器上除了port 80之外的其它埠。
  2. 使用微软的工具来保护机器:IIS LockdownUrlScan
  3. 启动使用IIS的日志文件(logging)功能。除了IIS纪录外,如果可能的话,同时也使用防火墙日志文件功能。
  4. 把记录的日志(log)从预设地点移开,并确保已经进行备份。为日志档案夹建立一个备份,这样在另一个位置总是有一个可以使用的备份档。
  5. 启动机器上的Windows监督功能(auditing),因为在试图反向追查攻击者的行为的时候总会发现资料不足。利用监督日志,你可借着执行脚本来检查任何可疑的行为,然后发送报告给管理员。这听起来好像有一点极端,但是如果贵公司非常重视安全的话,这种作法可说十分值得鼓励。建立监督功能来报告所有的失败账号登录事件。另外,就跟先前的IIS日志一样,请将默认值位置 c:\winnt\system32\config\secevent.log)改变为另一个不同的位置,并且确保你有一个备份而且有一个复制的拷贝文件。
  6. 经常多阅读一些安全文章(各种来源的)。最好是尽可能多了解IIS,并进行全面的安全作法,而不仅仅是按照其它人(比如我)告诉你的经验来实现。
  7. 加入IIS漏洞邮件清单(mailing list),并要确实加以阅读以掌握最新状态。这种列表有来自因特网安全系统的X-Force Alerts and Advisories
  8. 最后,确保你经常执行Windows Update,并重复检验修补程序真的已经有安装妥当。
下面是IIS工具
Log Parser is one cool tool. Created by Gabriele Giuseppini, a software engineer at Microsoft, the original Log Parser 1.0 was developed for Microsoft's internal testing purposes. It proved so popular that a public version, Log Parser 2.0, was released in 2001, and it has gone through two iterations, the current version being 2.2 and available from the Microsoft Download Center.
Log Parser operates as a kind of data pipeline. Into this pipe you can send information from IIS logs, Windows Event logs, Active Directory information, file system data, Registry data, Network Monitor traces, and so on. Once the data is in the pipe, you can process it using SQL statements; for example, to select certain portions of the data by a  SELECT  query. Then, as the processed data comes out of the pipeline, you can output it to text files, HTML files, Excel-style charts, or a SQL database table, or simply to the console as raw output. Putting these into proper syntax, a typical Log Parser command looks something like this:
Things can get a bit more complicated, but that's the basic idea.
Of course, the best way to learn about Log Parser is to actually use it, so let's see what we can do, using the Windows Event logs as a data source. After installing Log Parser, open a command prompt and change to the C:\Program Files\Log Parser directory, where the logparser.exe executable resides. Let's begin with a simple query to select all records from the System log:
Since there's no output format specified, Log Parser writes the output to the console. The result is a series of messy-looking records like this:
This event, for example, is an event of type  Information  that has an event ID of  7035  and an event source of  Service Control Manager . Log Parser will display these events ten at a time, prompting you for a keystroke to continue or Ctrl-C to abort.
Let's focus in on events of type  Error , as these are likely to be of some importance to us:
We still get messy-looking results, but now they're all  Error  events:
What kinds of  Error  events are we getting in our machine's System log? Let's output only the event sources this time:
The screen output now looks like this:
What are the different kinds of  Error  events in our System log, and how many of each source type were recorded? Log Parser can easily tell us this:
And here's what we get:
NETLOGON  errors may be important, so let's key in on those and display the event IDs for these events plus the date and time they were generated (sorted in descending order):

 
 
 
 
The output now looks like this:
What's the description for an event that has event ID  5719 ? Let's use Log Parser to find out:
This gives us:
Uh-oh, could be a problem. Was the network down? Did the domain controller go offline? We need to investigate this further, but if you want a good source of help for understanding events like this, search EventID.net for information on events with this event ID.

Additional Resources

This brief look at Log Parser only scratches the surface of what it can do. How can you learn how to do more with this tool?
First, you obviously need a good knowledge of SQL syntax to construct  SELECT  statements. A good resource for learning the basics is SQL Tutorial from FirstSQL.
Next, check out this Professor Windows article on Microsoft's web site, which gives you an excellent bird's-eye view of what Log Parser can do.
After that, you can familiarize yourself with the syntax of Log Parser by typing  logparser -h  and viewing the Help information displayed.
Once you've started to rock and roll with Log Parser, check out The Unofficial Log Parser Support Site, where you can find tons of resources and a thriving online community that can answer any questions you might have about using the tool.
Finally, pick up a copy of the Microsoft Log Parser Toolkit (Syngress) and kick your learning into high gear. You'll soon be an expert and wonder how you ever managed your Windows systems before Log Parser came around.
 





本文转自 张善友 51CTO博客,原文链接:http://blog.51cto.com/shanyou/75267,如需转载请自行联系原作者
相关实践学习
日志服务之使用Nginx模式采集日志
本文介绍如何通过日志服务控制台创建Nginx模式的Logtail配置快速采集Nginx日志并进行多维度分析。
目录
相关文章
|
1月前
|
弹性计算 Ubuntu Linux
新手怎么搭建《幻兽帕鲁Palworld》服务器流程步骤
对于《幻兽帕鲁》的忠实粉丝来说,与好友一同在这个开放世界中冒险无疑是最大的乐趣。而搭建一个专属服务器,则能为你们提供更加稳定和自由的游戏体验。那么,如何轻松搭建《幻兽帕鲁》服务器呢?接下来,就让我们一起探索吧!
|
2月前
|
弹性计算
2024年幻兽帕鲁/Palworld专用服务器搭建一步步讲解,联机服务器搭建详细步骤
近期,《幻兽帕鲁》这款游戏在游戏圈中引起了不小的轰动,尤其是其联机对战模式,为玩家们带来了前所未有的游戏体验。但是,想要与众多好友一同畅玩,却时常受到服务器卡顿、延迟高等问题的困扰。那么,如何解决这一问题呢?
|
1月前
|
弹性计算 Ubuntu 搜索推荐
幻兽帕鲁Palworld搭建联机服务器教程,新手搭建流程步骤
随着《幻兽帕鲁》这款开放世界生存游戏的持续火热,越来越多的玩家希望搭建属于自己的游戏服务器,与好友一同探险。那么,怎样才能轻松搭建《幻兽帕鲁》服务器呢?接下来,就跟随我们的脚步,简单几步助你实现梦想!
222 0
|
1月前
|
人工智能 弹性计算 监控
在阿里云服务器上搭建自己的人工智能,可以按照以下步骤进行:
【2月更文挑战第22天】在阿里云服务器上搭建自己的人工智能,可以按照以下步骤进行:
41 6
|
1月前
|
Kubernetes 网络安全 Windows
要在云效部署到阿里云服务器上的 Windows Server 上的 IIS
【2月更文挑战第18天】要在云效部署到阿里云服务器上的 Windows Server 上的 IIS
160 4
|
1月前
|
弹性计算 Ubuntu Linux
2024年Palworld/幻兽帕鲁联机服务器搭建方法分享,详细步骤
想要和好友一起畅游幻兽帕鲁的世界吗?别再为联机而烦恼,因为搭建自己的服务器其实并不难!今天,就为大家带来一篇超详细的幻兽帕鲁服务器搭建教程,保证让你轻松上手!
20 0
|
1月前
|
弹性计算
玩转幻兽帕鲁部署:2024年幻兽帕鲁Palworld服务器怎么搭建开服,详细步骤教程
您是不是已经厌倦了《幻兽帕鲁》中漫长的加载时间和不稳定的公共服务器?好消息是,现在您可以拥有自己的专属服务器了!而且,搭建过程非常简单,仅需轻点三次鼠标,3秒就能轻松开服。接下来,就让我们一起看看如何轻松搭建《幻兽帕鲁》的专属服务器吧!
|
1月前
|
弹性计算 安全 定位技术
2024年幻兽帕鲁Palworld游戏服务器怎么搭建流程,步骤详解
近期,随着《幻兽帕鲁》的风靡,越来越多的玩家渴望能拥有自己的专属游戏服务器,与好友在这个充满奇幻色彩的世界中畅游。好消息是,阿里云为了满足广大玩家的需求,特别推出了全程自动化的《幻兽帕鲁》服务器搭建服务。这一服务究竟有多简单?即便是从未接触过服务器设置的小白玩家,也能在几分钟内轻松搞定!
|
1月前
|
弹性计算 安全 数据安全/隐私保护
阿里云上搭建Palworld幻兽帕鲁专用服务器详细步骤
对于《幻兽帕鲁》的忠实粉丝来说,与好友一起联机冒险无疑是游戏中的一大乐趣。但如何快速、简便地搭建一个稳定的联机服务器,却常常成为玩家们的难题。今天,我将为大家带来一篇实用指南,教你如何利用阿里云轻松搭建《幻兽帕鲁》专用服务器,让你和好友在短短3秒内就能开启联机之旅!
|
1月前
|
弹性计算 Linux Windows
阿里云上自建Palworld/幻兽帕鲁服务器教程,新手小白搭建步骤
随着幻兽帕鲁/Palworld的风靡,越来越多的小伙伴渴望拥有属于自己的游戏服务器,以便随时随地与好友组队冒险。今天,就为大家带来一篇简单易懂的自建服务器教程,让你轻松从新手小白晋升为服务器搭建高手!