osquery does not return results for firefox_addons table on windows

未关闭
#8,646 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp

调研方向

首先,在 Windows 10.0.26100 上使用 osquery 5.17.0 重现 firefox_addons 的空结果,然后将其与提供的 Ubuntu 输出进行比较。追踪 firefox_addons 表的 Windows 路径;当已安装的 Firefox 扩展能够生成行并可与用户进行 join 时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug triage virtual tables Windows

Bug report

What operating system and version are you using?
osquery> SELECT version, build, platform FROM os_version;
+------------+-------+----------+
| version    | build | platform |
+------------+-------+----------+
| 10.0.26100 | 26100 | windows  |
+------------+-------+----------+
What version of osquery are you using?
osquery> SELECT version from osquery_info;
+---------+
| version |
+---------+
| 5.17.0  |
+---------+
What steps did you take to reproduce the issue?

I have a windows machine with firefox installed in it. I installed few extensions in firefox as well.

osquery> select * from programs where name like '%firefox%';
               name = Mozilla Firefox
            version = 140.0.1.0
   install_location = C:\Program Files\WindowsApps\Mozilla.Firefox_140.0.1.0_arm64__n80bbvh6b1yt2
     install_source =
           language =
          publisher = Mozilla
   uninstall_string =
       install_date = 20250627
 identifying_number =
package_family_name = Mozilla.Firefox_n80bbvh6b1yt2
       upgrade_code =

Queries tried(zero rows were returned):

osquery> select * from users a join firefox_addons b on a.uid=b.uid;
osquery> SELECT * FROM users CROSS JOIN firefox_addons USING (uid);
What did you expect to see?

More than zero rows returned for firefox_addons.
Example(from ubuntu machine):

osquery> select *, count(*) over () from users a join firefox_addons b on a.uid=b.uid limit 2;
+------+------+------------+------------+-----------+-----------------------------------------------------+-----------------+-----------+------+------+--------------------+------------------------------+---------+-----------+---------+-----------------------------------------------------+------------+---------+--------+----------+------------+---------------------+--------------------------------------------------------------------------------------+------------------+
| uid  | gid  | uid_signed | gid_signed | username  | description                                         | directory       | shell     | uuid | uid  | name               | identifier                   | creator | type      | version | description                                         | source_url | visible | active | disabled | autoupdate | location            | path                                                                                 | count(*) over () |
+------+------+------------+------------+-----------+-----------------------------------------------------+-----------------+-----------+------+------+--------------------+------------------------------+---------+-----------+---------+-----------------------------------------------------+------------+---------+--------+----------+------------+---------------------+--------------------------------------------------------------------------------------+------------------+
| 1000 | 1000 | 1000       | 1000       | parallels |                                                     | /home/parallels | /bin/bash |      | 1000 | Form Autofill      | [email protected]     | null    | extension | 1.0.1   |                                                     | null       | 1       | 1      | 0        | 1          | app-system-defaults | /snap/firefox/4758/usr/lib/firefox/browser/features/[email protected]     | 12               |
| 1000 | 1000 | 1000       | 1000       | parallels | Fixes for web compatibility with Picture-in-Picture | /home/parallels | /bin/bash |      | 1000 | Picture-In-Picture | [email protected] | null    | extension | 1.0.0   | Fixes for web compatibility with Picture-in-Picture | null       | 1       | 1      | 0        | 1          | app-system-defaults | /snap/firefox/4758/usr/lib/firefox/browser/features/[email protected] | 12               |
+------+------+------------+------------+-----------+-----------------------------------------------------+-----------------+-----------+------+------+--------------------+------------------------------+---------+-----------+---------+-----------------------------------------------------+------------+---------+--------+----------+------------+---------------------+--------------------------------------------------------------------------------------+------------------+

What did you see instead?

Running a query for firefox addons return no results.

主要语言
C++
星标
23.8k
派生
2.7k
平均合并
6 天 11 小时
30 天内合并 PR
69

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

osquery/osquery 的其他 Issue

查看 osquery/osquery 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。