We developed a framework for reflective middleware that monitors security capabilities that every software component has. The main idea is to monitor the applications, changing or tuning the software components with the explicit goal of making the whole system as secure as possible. The middleware is flexible enough to be configured with the specific needs of the system that is going to be monitored. This experience can be implemented not only for security purposes but also for performance monitoring, load balancing or resource management in areas like Grid computing, DataWarehouses, Webservices among others.