diff --git a/modules/integrations/activedirectory/analyze/analyze-ad.go b/modules/integrations/activedirectory/analyze/analyze-ad.go index 1d5e704..799af40 100644 --- a/modules/integrations/activedirectory/analyze/analyze-ad.go +++ b/modules/integrations/activedirectory/analyze/analyze-ad.go @@ -1260,10 +1260,12 @@ func init() { object.Tag("account_enabled") } - if exp, ok := object.Attr(activedirectory.AccountExpires).First().Raw().(time.Time); ok { - if !exp.IsZero() && time.Now().After(exp) { - object.Tag("account_expired") - expired = true + if object.HasAttr(activedirectory.AccountExpires) { + if exp, ok := object.Attr(activedirectory.AccountExpires).First().Raw().(time.Time); ok { + if !exp.IsZero() && time.Now().After(exp) { + object.Tag("account_expired") + expired = true + } } }