tl;dr I learned how to decrypt .manifest files and used them to document data fields in Windows Defender. (.manifest can be seen here)

tl; dr我学习了如何解密.manifest文件并将其用于记录Windows Defender中的数据字段。 (.manifest可以在这里看到)

About 6 months ago, I was tasked with writing a parser for Windows Defender, to correctly get syslogs from endpoints into our SIEM platform at work. Writing the Regex was trivial, as I had been writing parsers for a couple of months at the time, but when it came to classifying the different logs, I ran into some issues.

大约6个月前,我的任务是为Windows Defender编写一个解析器,以将来自端点的系统日志正确地导入到我们工作的SIEM平台中。 正像我当时写解析器几个月的时间一样,编写正则表达式很简单,但是在分类不同的日志时,我遇到了一些问题。

The problem was the documentation from Microsoft, or rather, the lack of it. I simply could not find any documentation from Microsoft on the fields in the syslog messages. Okay, that might not be entirely fair, as Microsoft has some documentation on the different Event ID’s in the logs (link), but some of the data fields in a regular log are not documented and appear as “%%” followed by 3 digits.

问题是微软提供的文档,或者说缺少它。 我只是在syslog消息的字段中找不到Microsoft提供的任何文档。 好的,这可能并不完全公平,因为Microsoft在日志(链接)中有一些有关不同事件ID的文档,但是常规日志中的某些数据字段未记录在案,而是显示为“ %%”,后跟3位数字。

As with any problem you don’t know the answer to, I started searching online. I found the usual Microsoft documentation (linked further up), but nothing else really caught my eye at first. I went all the way to page 3 (i know most of you don’t do this) on one of the google searches when I finally came across this site. It was a weird Japanese xmail server, that hosted a manifest file for Windows Defender, and at the bottom of the file were definitions for everything I needed. Every line looked a bit like the following, and every value corresponded to something different.

对于您不知道答案的任何问题,我开始在线搜索。 我找到了通常的Microsoft文档(进一步链接在一起),但是起初没有其他东西引起我的注意。 当我最终访问该网站时,我一直走到Google搜索之一的第3页(我知道你们大多数人都不这样做)。 这是一个奇怪的日语xmail服务器,它托管Windows Defender的清单文件,并且在文件底部是我所需的所有内容的定义。 每行看起来都如下所示,并且每个值都对应不同的内容。

<message ... symbol="MP_EVENT_WGA_VISTA_PRODUCT_NAME" value="827" />

So looking at the example log above, you can see there is a Data field called “Product Name” with a value of %%827. Taking that 827 and checking the manifest file, gives the product name: “MP_EVENT_WGA_VISTA_PRODUCT_NAME”. As I said in the beginning, this was about 6 months ago, and back then I had everything I wanted from that .manifest file, so I quit searching and completed the task. But when I had to make new parsers earlier today, I realized i had a problem.

因此,在上面的示例日志中,您可以看到有一个名为“产品名称”的数据字段,其值为%% 827。 拿827并检查清单文件,得到产品名称:“ MP_EVENT_WGA_VISTA_PRODUCT_NAME”。 就像我在开始时所说的那样,大约是6个月前,那时我已经从该.manifest文件中获得了所有想要的东西,所以我退出搜索并完成了任务。 但是当我今天早些时候不得不制作新的解析器时,我意识到我遇到了问题。

The range of values provided in the original .manifest, was only from 800–842, but taking a look at the log above we have values as high as 870. So I had to go back to finding a solution. The reason for the lack of values is, that the .manifest file corresponds to the Defender version 6.1.7600.16385. Searching for this version online provides a Microsoft helpdesk question from the 15th of May 2013.

原始.manifest中提供的值范围仅在800-842之间,但是看看上面的日志,我们看到的值高达870。因此,我不得不回头寻找解决方案。 缺少值的原因是.manifest文件对应于Defender版本6.1.7600.16385。 从5月15日到13日,在线搜索此版本提出了Microsoft服务台问题

I took another look at the Japanese site, and noticed the URL looked weird.

我再次查看了日语站点,发现URL看起来很奇怪。

xmail.dojo.jp/sample/xmailcfg/cgi/file_download.cgi?_files_+Windows/winsxs/Manifests+amd64_security-malware-windows-defender-events_31bf3856ad364e35_6.1.7600.16385_none_118cf1dcd54a3dea.manifest

It was a cgi file that showed files on the local Windows Machine online, so I guessed that the path (C:\Windows\WinSxS\Manifests\) might have a new and updated .manifest. It did, but since 2013 Microsoft had made some changes. The files are now compressed. This was not a huge issue I imagined so I went back to Google and DDG. I found an old post from someone on mydigitallife called “Aunty Mel’s Cheap And Nasty SxS File Expander” and tried to find a download link. As most of the filesharing services had gone down, only a single one still had the file, but after running the program and then trying to solve the following issue for a while, I went on searching.

这是一个cgi文件,该文件在线显示了本地Windows计算机上的文件,因此我猜测路径(C:\ Windows \ WinSxS \ Manifests \)可能具有新的和更新的.manifest。 确实如此,但是自2013年以来,Microsoft进行了一些更改。 现在,文件已压缩。 这不是我想象的大问题,所以我回到了Google和DDG。 我在mydigitallife上发现了某人的旧帖子,名为“ Aunty Mel's Cheap And Nasty SxS File Expander”,并试图找到下载链接。 由于大多数文件共享服务都已关闭,因此只有一个文件共享服务,但是在运行该程序并尝试解决以下问题一段时间后,我继续进行搜索。

Program run on a Windows 10 machine
在Windows 10计算机上运行的程序

I eventually found a GitHub repo from hfiref0x that had exactly what I needed. I am grateful that he provided binaries, as I had some trouble compiling the code myself. The program is simple to run, I copied one of the manifest files to a folder with the sxsexp64.exe program, and run with the syntax described in the README of the GitHub repo. The output should look something like this:

我最终从hfiref0x找到了一个GitHub存储库,该存储库正是我所需要的。 我感谢他提供了二进制文件,因为我自己编译代码时遇到了一些麻烦。 该程序易于运行,我使用sxsexp64.exe程序将清单文件之一复制到文件夹中,并使用Gi​​tHub存储库的README中描述的语法运行。 输出应如下所示:

Output from conversion
转换输出

The final result should then be a manifest in XML format that is humanly readable, in which the remaining ID’s are. So after a couple of hours of searching and trying to figure out what I needed, I ended up with an entire list of the ids from 800–902.

然后,最终结果应该是人类可读的XML格式的清单,其中包含其余的ID。 因此,经过几个小时的搜索并试图找出我需要的东西,我最终得到了800-902之间的ID的完整列表。

The Decompressed .manifest can be seen here

解压缩的.manifest可以在这里看到

The log with the missing names filled in
缺少名称的日志已填写

To be fair, this does not make it 100% clear to read for me, as I am no windows expert, but I am still not sure why Microsoft doesn’t have this documented anywhere. For now, I will concentrate on something else, and just enjoy my win.

公平地说,由于我不是Windows专家,所以这并不能100%清晰地为我阅读,但是我仍然不确定为什么Microsoft不在任何地方对此进行记录。 现在,我将专注于其他事情,然后享受我的胜利。

翻译自: https://medium.com/@oxnan/converting-manifest-files-into-windows-defender-documentation-829230294d65


http://www.taodudu.cc/news/show-3486685.html

相关文章:

  • php中iconv函数使用_字符集转换编码
  • IT名词备忘录——汇编
  • 使用iconv编程进行字符集转换
  • ANSI、GBK、Unicode等等iconv转换详解一文搞定
  • 数据类型已经转换
  • 使用XRECODE II转换几乎任何音频格式
  • IT日语关键300词
  • html字符 编码转换,HTML字符编码
  • python 日语转罗马音工具 pykakasi模块使用
  • IT日语(中日对照)
  • IT 日语
  • 常见的IT 日语
  • 文字转换片假字_歌词中日语汉字转平假名片假名《Listen》— ONE OK ROCK艾薇儿拉维尼...
  • IT日语/英语_编程常见/常用单词_经验分享
  • 学习python打卡第一天
  • git did not exit cleanly (exit code 1)的解决方法,初学者的我大胆尝试,成功解决问题QAQ泪目了
  • js中动态函数的一些用法尝试
  • 无人车:人类最伟大的AI尝试
  • 刚跟朋友说完想买啥,某宝就给我推荐是咋回事?
  • 大胆预测下未来5年的Web开发
  • 勇于尝试,敢于失败
  • Elasticsearch 字段膨胀不要怕,Flattened 类型解千愁!
  • 融云猿桌派备忘录,那些被程序员 Pick 的工作方式
  • 为了帮助前后端分离的新手,我做了一次大胆的尝试!
  • QQ音乐高级工程师袁聪:大胆尝试,展现不一样的React Native
  • 大胆尝试之
  • 区块链模块化的大胆尝试,解读公链Celestia
  • java: 抽象方法不能有主体
  • Java中的抽象类与抽象方法
  • java 编写抽象类Animal,JAVA 抽象类,抽象方法

将清单文件转换为Windows Defender文档相关推荐

  1. 使用Pandoc将Markdown文件转换为文字处理器文档

    如果您以纯文本的方式生活,那么总会有一段时间有人要求文字处理程序文档. 我经常遇到这个问题,尤其是在Day Job TM上 . 尽管我已经在Docs Like Code工作流程中介绍了一个开发团队,用 ...

  2. 微软 word转换pdf_如何将PDF转换为Microsoft Word文档

    微软 word转换pdf PDFs are often used when distributing documents so that they're seen the same way by al ...

  3. 【学习笔记】Windows格式文档转换成Unix格式

    [学习笔记]Windows格式文档转换成Unix格式 我们有时候需要将文档格式从Windows格式转换成Unix格式,Windows下换行是\r\n,而Unix下换行是\n,所以只需要将文档中的\r去 ...

  4. 使用xsl将xml转化为HTML文档,基于XSL将XML文档转换为HTML格式文档的方法与流程

    技术特征: 1.一种基于XSL将XML文档转换为HTML格式文档的方法,其特征在于,包括: S1,新建一个与XML文档同名的HTML格式文档: S2,定义转换算法,实现XML文档到HTML格式文档的转 ...

  5. VC++ MSXML创建XML文件以及对XML文档解析

    VC++ MSXML创建XML文件以及对XML文档解析 转自http://www.newxing.com/Tech/Program/Cpp/703.html // XmlCreationDemo.cp ...

  6. [sharepoint]rest api文档库文件上传,下载,拷贝,剪切,删除文件,创建文件夹,修改文件夹属性,删除文件夹,获取文档列表...

    写在前面 最近对文档库的知识点进行了整理,也就有了这篇文章,当时查找这些接口,并用在实践中,确实废了一些功夫,也为了让更多的人走更少的弯路. 系列文章 sharepoint环境安装过程中几点需要注意的 ...

  7. 如何使用ABBYY FineReader 12将JPEG文件转换成Word文档

    日常工作中处理JPEG格式的图像文件时,有时需要转换成Word文档进行编辑,市场上应用而生了很多转换工具,相信不少人听说过OCR(光学字符识别)软件,可以用来转换图像文件,而在OCR软件中, ABBY ...

  8. bin文件怎么转换成文本文档_怎么把pdf文件转换成word文档?这样转很简单

    在日常的学习.工作生活中,小伙伴们总少不了要对文件格式进行转换操作,例如把pdf文件转换成word文档.对于职场老手来说,这当然不算一个难度操作,甚至还很简单.但对于职场新人而言,找不对方法,可能操作 ...

  9. 不支持所上传的文件格式。请确认选择的文件无误。_职场人必备!如何把PDF文件转换成word文档?...

    点击箭头处"蓝色字",关注我们哦!! 再撑一下!明天就是周末了! PDF大家都用过,它是平时我们办公中最常用到的文件格式之一.它是一种可移植文档格式,与操作系统平台无关,在任何系统 ...

最新文章

  1. Ajax接收Java异常_java – 处理来自Servlet的Jquery AJAX响应中的异常
  2. 那些年,SDN走过来时的路
  3. 家庭用户的linux,一个极普通家庭用户对于ubuntu的21天使用心得
  4. Android Studio 导入新工程项目
  5. JEECG(J2EE Code Generation) 基于代码生成器J2EE智能开发框架 杂记:发布新版本 JEECG_v2.0
  6. 设计模式学习笔记三:工厂方法模式
  7. 手机连接蓝牙扫码枪_扫码枪蓝牙连接电脑 蓝牙扫码枪
  8. 铭瑄显卡不支持Linux,完善支持 NV显卡Linux驱动275.19正式版
  9. 什么是JSONP及其实现原理
  10. matlab 有源高滤波器,基于MATLAB有源滤波器的研究设计.ppt
  11. 计算机快捷键任务管理器,打开电脑任务管理器快捷键是什么
  12. matlab模糊控制侧方位泊车
  13. 中国IT产业未来在哪里
  14. html 背景颜色设置为透明,css如何设置背景颜色透明?css设置背景颜色透明度的两种方法介绍...
  15. 计算机广告制作介绍,计算机广告制作.ppt
  16. Git Branching基础操作学习笔记
  17. JAVA小功能手机短信发送
  18. signal 使用介绍
  19. 君子不玩物丧志,亦常以借物调心,网站集成二次元网页小组件(widget)石蒜模拟器,聊以赏玩
  20. 新鲜新奇事物_用新鲜形容事物很新奇的句子

热门文章

  1. android要比ios耗电,这几个原因导致苹果手机耗电比安卓手机快
  2. 这个Github宝藏仓库竟然收藏了这么多好东西?
  3. 关于servlet和JSP通过AJAX传值之间的那些事
  4. 笔记--HTML基础
  5. NotePad++ 正则表达式替换 高级用法
  6. CSS基本(选择器及样式)--2021-08-12
  7. winformskin_C#.net winform skin 皮肤 大全(转) | 学步园
  8. 喝起来 2022精酿啤酒文化节暨精酿技术装备展济南 时间定了精彩抢先看
  9. 该来的还是来了,盘点 ES12 中有新特性!
  10. 星起航:抖音小店适合做哪些类目