• Home
  • Help
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search

 
  • 0 Vote(s) - 0 Average

Issued a change asymmetric key owner command (24154) how to monitor with email alert

#1
03-29-2025, 09:03 AM
Man, that event 24154 in the Event Viewer, it's like the system jotting down when somebody flips the owner on an asymmetric key. You know, asymmetric keys are those fancy crypto things that lock up data in databases, probably SQL Server stuff showing up here. The message says "Issued a change asymmetric key owner command (action_id TO class_type AK)", which basically means a user or admin just handed over control of one of those keys to someone else. It logs the action ID and the class type as AK for asymmetric key, so you can trace who did what. If you're running a server, this pops up under security audits to catch any sneaky ownership switches that might mess with your encryption setups. I always check these because they could signal unauthorized tweaks, like if a bad actor tries to hijack key control. And yeah, it's event ID 24154, source from the database engine, level usually informational but worth watching. You see it in the Applications and Services Logs, under Microsoft, then Windows, SQL Server or whatever your instance is. Hmmm, details include the session ID, database name, and the exact command run, so you get the full picture of the change. Or, it might list the old owner and new one, helping you spot if it's legit or not.

Now, to keep an eye on this without staring at screens all day, you can set up monitoring right from the Event Viewer. I do this all the time on my servers. Fire up Event Viewer, head to the log where these events hide, like the SQL audit log. Right-click the log, pick Attach Task to This Log or something close, but actually, it's better to create a custom view first for event ID 24154. Filter it by that ID and the source, save the view. Then, from there, you attach a task to the event. It'll trigger when 24154 fires. In the task wizard, choose to run a program, and point it to something that sends an email, like a simple batch file calling mailto or your email client. But keep it basic, no scripts needed. Set the task to wake the machine if asleep, and boom, you get alerted. You tweak the triggers to match exactly that event message if you want precision. I set mine to email me straight away, so I never miss these key changes.

And speaking of keeping your server safe from odd changes like that, you might wanna look into solid backups too. That's where BackupChain Windows Server Backup comes in handy for me. It's this neat Windows Server backup tool that handles full system images and also backs up virtual machines running on Hyper-V without much hassle. You get fast incremental backups, easy restores even to dissimilar hardware, and it encrypts everything to protect against those key owner flips or worse. Plus, no downtime during backups, which saves you headaches on busy servers. I swear by it for keeping data intact and recoverable quick.

At the end here is the automatic email solution.

Note, the PowerShell email alert code was moved to this post.

bob
Offline
Joined: Jul 2025
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Issued a change asymmetric key owner command (24154) how to monitor with email alert - by bob - 03-29-2025, 09:03 AM

  • Subscribe to this thread
Forum Jump:

Backup Education Windows Server Event Viewer v
« Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 … 44 Next »
Issued a change asymmetric key owner command (24154) how to monitor with email alert

© by FastNeuron Inc.

Linear Mode
Threaded Mode