Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for the NT Kernel Logger ETW session #3988

Merged
merged 5 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ package api

import (
"bytes"
"context"
"io/ioutil"
"regexp"
"strings"

"github.com/Velocidex/ordereddict"
errors "github.com/go-errors/errors"
context "golang.org/x/net/context"
"www.velocidex.com/golang/velociraptor/acls"
actions_proto "www.velocidex.com/golang/velociraptor/actions/proto"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
Expand Down
2 changes: 1 addition & 1 deletion api/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package api

import (
"bytes"
"context"
"fmt"
"html/template"
"net/http"
Expand All @@ -30,7 +31,6 @@ import (
"github.com/andybalholm/brotli"
"github.com/gorilla/csrf"
"github.com/lpar/gzipped"
context "golang.org/x/net/context"
"www.velocidex.com/golang/velociraptor/api/proto"
api_utils "www.velocidex.com/golang/velociraptor/api/utils"
utils "www.velocidex.com/golang/velociraptor/api/utils"
Expand Down
2 changes: 1 addition & 1 deletion api/authenticators/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package authenticators

import (
"context"
"fmt"
"io"
"io/ioutil"
"net/http"

"github.com/sirupsen/logrus"
context "golang.org/x/net/context"
"golang.org/x/oauth2"
"golang.org/x/oauth2/microsoft"
"www.velocidex.com/golang/velociraptor/acls"
Expand Down
2 changes: 1 addition & 1 deletion api/authenticators/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package authenticators

import (
"context"
"fmt"
"io"
"io/ioutil"
"net/http"

"github.com/sirupsen/logrus"
context "golang.org/x/net/context"
"golang.org/x/oauth2"
"golang.org/x/oauth2/github"
"www.velocidex.com/golang/velociraptor/acls"
Expand Down
2 changes: 1 addition & 1 deletion api/authenticators/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package authenticators

import (
"context"
"crypto/rand"
"encoding/base64"
"fmt"
Expand All @@ -29,7 +30,6 @@ import (
"github.com/Velocidex/ordereddict"
"github.com/gorilla/csrf"
"github.com/sirupsen/logrus"
context "golang.org/x/net/context"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"www.velocidex.com/golang/velociraptor/acls"
Expand Down
2 changes: 1 addition & 1 deletion api/authenticators/http.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package authenticators

import (
"context"
"net/http"

oidc "github.com/coreos/go-oidc/v3/oidc"
context "golang.org/x/net/context"
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
"www.velocidex.com/golang/velociraptor/vql/networking"
)
Expand Down
2 changes: 1 addition & 1 deletion api/datastore.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package api

import (
"context"
"sync"

context "golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"
Expand Down
2 changes: 1 addition & 1 deletion api/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
package api

import (
"context"
"fmt"
"html"
"io"
Expand All @@ -41,7 +42,6 @@ import (
errors "github.com/go-errors/errors"
"github.com/gorilla/schema"

context "golang.org/x/net/context"
"www.velocidex.com/golang/velociraptor/acls"
actions_proto "www.velocidex.com/golang/velociraptor/actions/proto"
"www.velocidex.com/golang/velociraptor/api/authenticators"
Expand Down
3 changes: 2 additions & 1 deletion api/events.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package api

import (
context "golang.org/x/net/context"
"context"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"
Expand Down
2 changes: 1 addition & 1 deletion api/filesearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package api

import (
"bytes"
"context"
"encoding/hex"
"io"
"regexp"
"strings"

errors "github.com/go-errors/errors"
context "golang.org/x/net/context"
"www.velocidex.com/golang/velociraptor/acls"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
"www.velocidex.com/golang/velociraptor/file_store"
Expand Down
3 changes: 2 additions & 1 deletion api/flows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package api

import (
context "golang.org/x/net/context"
"context"

"www.velocidex.com/golang/velociraptor/acls"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
"www.velocidex.com/golang/velociraptor/api/tables"
Expand Down
3 changes: 2 additions & 1 deletion api/health.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package api

import (
context "golang.org/x/net/context"
"context"

"www.velocidex.com/golang/velociraptor/api/proto"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion api/hunts.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package api

import (
"context"
"fmt"
"strings"
"time"

"github.com/Velocidex/ordereddict"
errors "github.com/go-errors/errors"

context "golang.org/x/net/context"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/emptypb"
"www.velocidex.com/golang/velociraptor/acls"
Expand Down
2 changes: 1 addition & 1 deletion api/notebooks.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package api

import (
"context"
"os"
"strings"
"sync"
"time"

"github.com/Velocidex/ordereddict"
errors "github.com/go-errors/errors"
context "golang.org/x/net/context"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/emptypb"
"www.velocidex.com/golang/velociraptor/acls"
Expand Down
2 changes: 1 addition & 1 deletion api/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package api

import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
Expand All @@ -28,7 +29,6 @@ import (
errors "github.com/go-errors/errors"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"

"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/metadata"
Expand Down
2 changes: 1 addition & 1 deletion api/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package api

import (
"context"
"regexp"
"strings"

context "golang.org/x/net/context"
"google.golang.org/protobuf/types/known/emptypb"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
artifacts_proto "www.velocidex.com/golang/velociraptor/artifacts/proto"
Expand Down
3 changes: 2 additions & 1 deletion api/reformat.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package api

import (
context "golang.org/x/net/context"
"context"

"www.velocidex.com/golang/velociraptor/acls"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
"www.velocidex.com/golang/velociraptor/services"
Expand Down
2 changes: 1 addition & 1 deletion api/replication.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package api

import (
"context"
"fmt"
"sort"
"strings"
Expand All @@ -11,7 +12,6 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/sirupsen/logrus"
context "golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/peer"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion api/reports.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package api

import (
"context"
"fmt"
"strings"

errors "github.com/go-errors/errors"
context "golang.org/x/net/context"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
"www.velocidex.com/golang/velociraptor/constants"
Expand Down
3 changes: 2 additions & 1 deletion api/secrets.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package api

import (
"context"

"github.com/Velocidex/ordereddict"
context "golang.org/x/net/context"
"google.golang.org/protobuf/types/known/emptypb"
"www.velocidex.com/golang/velociraptor/acls"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
Expand Down
2 changes: 1 addition & 1 deletion api/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package api

import (
"bytes"
"context"
"io"
"io/fs"
"net/http"
Expand All @@ -24,7 +25,6 @@ import (
errors "github.com/go-errors/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
context "golang.org/x/net/context"
"www.velocidex.com/golang/velociraptor/services"
)

Expand Down
3 changes: 2 additions & 1 deletion api/tables/notebooks.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package tables

import (
context "golang.org/x/net/context"
"context"

api_proto "www.velocidex.com/golang/velociraptor/api/proto"
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
"www.velocidex.com/golang/velociraptor/services"
Expand Down
2 changes: 1 addition & 1 deletion api/tables/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package tables

import (
"context"
"io"
"regexp"
"strings"
"time"

"github.com/Velocidex/ordereddict"
errors "github.com/go-errors/errors"
context "golang.org/x/net/context"
file_store "www.velocidex.com/golang/velociraptor/file_store"
"www.velocidex.com/golang/velociraptor/file_store/api"
"www.velocidex.com/golang/velociraptor/file_store/path_specs"
Expand Down
2 changes: 1 addition & 1 deletion api/tables/timelines.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package tables

import (
"context"
"time"

errors "github.com/go-errors/errors"
context "golang.org/x/net/context"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
"www.velocidex.com/golang/velociraptor/json"
Expand Down
2 changes: 1 addition & 1 deletion api/timelines.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package api

import (
"context"
"time"

"github.com/Velocidex/ordereddict"
context "golang.org/x/net/context"
"google.golang.org/protobuf/types/known/emptypb"
"www.velocidex.com/golang/velociraptor/acls"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
Expand Down
2 changes: 1 addition & 1 deletion api/tools.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package api

import (
context "golang.org/x/net/context"
"context"

"www.velocidex.com/golang/velociraptor/acls"
artifacts_proto "www.velocidex.com/golang/velociraptor/artifacts/proto"
Expand Down
2 changes: 1 addition & 1 deletion api/users.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package api

import (
"context"
"errors"
"sort"

"github.com/Velocidex/ordereddict"
context "golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"
Expand Down
2 changes: 1 addition & 1 deletion api/vfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ GetVFSDownloadInfoPath().
package api

import (
"context"
"fmt"
"strings"

context "golang.org/x/net/context"
"www.velocidex.com/golang/velociraptor/acls"
actions_proto "www.velocidex.com/golang/velociraptor/actions/proto"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
Expand Down
3 changes: 2 additions & 1 deletion api/vql.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package api

import (
"context"

"github.com/Velocidex/ordereddict"
context "golang.org/x/net/context"
api_proto "www.velocidex.com/golang/velociraptor/api/proto"
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
"www.velocidex.com/golang/velociraptor/json"
Expand Down
3 changes: 3 additions & 0 deletions artifacts/definitions/Notebooks/SigmaStudio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ parameters:
default: Windows
choices:
- Windows
- WindowsEvents
- Linux
- LinuxEvents

- name: Debug
description: Enable this to match all rules (even if they did not match) in order to see what detections matched.
type: bool
Expand Down
Loading
Loading